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

make C stubs non allocating? #1

Open
avsm opened this issue Aug 23, 2013 · 0 comments
Open

make C stubs non allocating? #1

avsm opened this issue Aug 23, 2013 · 0 comments

Comments

@avsm
Copy link
Member

avsm commented Aug 23, 2013

I notice that the C stubs do a range check and then raise an exception if it's over. Instead of that, we could always mask off the index with page_size, and so overflow back to the start

This would make the rest of the stub non-allocating and safe to mark noalloc, and be a minor speedup if its on the critical path. Needs to be benchmarked though.

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

No branches or pull requests

2 participants