Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #9926 will not alter performanceComparing Summary
|
|
I'm not seeing any difference, both are We already have this why is this not enough? |
|
Unfortunately, Rust offers no tools to detect whether a type contains padding. So I don't think it's possible to implement a test. This PR does not affect type size or alignment, only whether any of the bytes representing the type are uninitialized. When they are, creating and copying a This is a micro-micro-optimization, but creating and copying But this PR isn't succeeding in fixing the perf loss. Looks like changing the |
Pack the parser tokens into a single u128. I was musing with o3 about compiler performance, and it told me that Hermes used packed tokens to improve parser performance so I thought I'd try and see if that would also work here. In local benchmarks it appears to have a decent improvement. closes #9926

#9918 caused a small regression on lexer and parser benchmarks because it introduced an uninitialized padding byte into
Token.Add another dummy
u8to fill the uninitialized hole.