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

Only rewrite bytecode on hot functions #485

Open
tekknolagi opened this issue May 15, 2023 · 0 comments
Open

Only rewrite bytecode on hot functions #485

tekknolagi opened this issue May 15, 2023 · 0 comments

Comments

@tekknolagi
Copy link
Owner

We shouldn't spend a lot of time rewriting if a function is never called. Add an opcode INC_STATS that, after a certain threshold, rewrites the bytecode using rewriteBytecode. It can optionally NOP the INC_STATS or rewrite it to something else for a higher tier of optimization.

Task: T45382423 (probably?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant