We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sometime ago I drafted a version to use SIMD for skipping whitespaces:
In this good first issue, you should be able to replicate the code from above, and add it to the lexer.
You should refactor the code above into a function and call the function just above the while loop:
https://github.com/Boshen/oxc/blob/93993978de969589f1fb91a689594a5e5c4b8f02/crates/oxc_parser/src/lexer/mod.rs#L320-L330
You will also need to add #![feature(portable_simd)] to the top of crates/oxc_parser/src/lib.rs
#![feature(portable_simd)]
crates/oxc_parser/src/lib.rs
To the run parser, you can run the example binary:
https://github.com/Boshen/oxc/blob/3daf5bcea95f6fe2c88a7956948f4cb22711f99e/crates/oxc_parser/examples/simple.rs#L7-L10
Background reading:
The text was updated successfully, but these errors were encountered:
Adding also a beginner introduction, taken from the rust repository: https://github.com/rust-lang/portable-simd/blob/master/beginners-guide.md
Sorry, something went wrong.
perf(lexer): use portable-SIMD to speed up whitespace scanning
c46ca07
closes #13
ab68cea
No branches or pull requests
Sometime ago I drafted a version to use SIMD for skipping whitespaces:
In this good first issue, you should be able to replicate the code from above, and add it to the lexer.
You should refactor the code above into a function and call the function just above the while loop:
https://github.com/Boshen/oxc/blob/93993978de969589f1fb91a689594a5e5c4b8f02/crates/oxc_parser/src/lexer/mod.rs#L320-L330
You will also need to add
#![feature(portable_simd)]
to the top ofcrates/oxc_parser/src/lib.rs
To the run parser, you can run the example binary:
https://github.com/Boshen/oxc/blob/3daf5bcea95f6fe2c88a7956948f4cb22711f99e/crates/oxc_parser/examples/simple.rs#L7-L10
Background reading:
The text was updated successfully, but these errors were encountered: