Commits
Click on a commit to change the comparison rangeperf(codegen): faster splitting comments into lines (#13190)
Follow-on after #13169.
Implement the first optimization mentioned in https://github.com/oxc-project/oxc/pull/13169#issuecomment-3196080841. Iterate over string byte-by-byte rather than char-by-char.
It's amazing how bad Rust is at string operations. I tried it without unsafe code at first, but Rust inserts checks for whether a slice falls on a UTF-8 char boundary on every single operation, even though it's obvious from the context that these checks can never fail. It made the assembly x4 longer, which is no good as this is meant to be a tight loop.3 months ago
by overlookmotel