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

overreads #5

Open
graphitemaster opened this issue Oct 11, 2017 · 2 comments
Open

overreads #5

graphitemaster opened this issue Oct 11, 2017 · 2 comments

Comments

@graphitemaster
Copy link

it's documented behavior so not strictly a bug, however you could avoid overreads by by computing the offsets from a table, there's only a few.

@skeeto
Copy link
Owner

skeeto commented Oct 11, 2017 via email

@graphitemaster
Copy link
Author

there's no such thing as a read that is smaller than a cache line anyways, so consuming the first byte to calculate length then using a table (or some masking technique) would be fine, though it's hard to say how it'll perform in practice.

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

2 participants