-
Notifications
You must be signed in to change notification settings - Fork 129
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 pointer offset instead of a slice and integer position #210
Comments
A safe way to represent a slice as a pair of pointer might be |
Is |
It's |
…king. Fixes #210. Posted for posterity since it seems a regression at least in some of our benchmarks, and would need more work.
…king. Fixes #210. Posted for posterity since it seems a regression at least in some of our benchmarks, and would need more work.
Posted #381 for posterity which uses a slice iterator. It seems that's a regression at least on the big-data-url test, so it'd need more work. |
…king. Fixes #210. Posted for posterity since it seems a regression at least in some of our benchmarks, and would need more work.
The generated assembly for code using next_byte_unchecked like skip_whitespace has a suprising number of indirections in order to actually get the byte value. This is caused by the need to get the slice, then get the byte at the desired offset from it at
rust-cssparser/src/tokenizer.rs
Line 372 in 682087f
The text was updated successfully, but these errors were encountered: