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

Consider using a bitvector for lua memory type tracking. #23

Open
MDFL64 opened this issue Jun 8, 2019 · 0 comments
Open

Consider using a bitvector for lua memory type tracking. #23

MDFL64 opened this issue Jun 8, 2019 · 0 comments
Assignees
Labels
optimisation Implement this to make things run faster

Comments

@MDFL64
Copy link
Collaborator

MDFL64 commented Jun 8, 2019

Currently memory types are tracked using a (hash)table.

Performing a table lookup for every memory operation is probably not the best idea. Type ids only take up 2 bits of space, so we should be able to store 16 cells (64 bytes) worth of type ids per bitvector cell.

@MDFL64 MDFL64 self-assigned this Jun 8, 2019
@MDFL64 MDFL64 added the optimisation Implement this to make things run faster label Jun 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimisation Implement this to make things run faster
Projects
None yet
Development

No branches or pull requests

2 participants