Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a more reasonable CPU fetching flow #23

Open
bigspider opened this issue Sep 13, 2024 · 0 comments
Open

Implement a more reasonable CPU fetching flow #23

bigspider opened this issue Sep 13, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@bigspider
Copy link
Collaborator

While #20 added a basic cache for pages, the way memory is accessed during execution allows for much deeper optimizations:

  • except after branches, the next instruction is almost always in the same page
  • code pages are immutable

Moreover, currently the CPU fetches, decodes and executes a single instruction. However, code pages are immutable, so there is no reason to decode an instruction multiple times (unless the page was dropped).

Improving this flow will bring a huge performance boost.

@bigspider bigspider added the enhancement New feature or request label Sep 13, 2024
@bigspider bigspider added this to the MVP milestone Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant