This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
Feature: Create linked list for stack and its stack items #14
Labels
enhancement
New feature or request
Problem
A VM implementation needs to push and pop a lot of data. Using a stretchy buffer (which the std::list is) will need to grow a lot in a single program execution, an intensive operation.
Solution
A double linked list will significantly improve performance. We could use a single linked list, but some DROP instructions will remove list items that are not on the top of the stack. I suggest using a double linked list implementation.
The text was updated successfully, but these errors were encountered: