Uh oh!
There was an error while loading. Please reload this page.
Fix #1638: Faster returning of results - #1647
Conversation
Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
mdboom
commented
Feb 18, 2026
/ok to test |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
|
leofang
commented
Feb 18, 2026
@mdboom sorry for noticing this late, but I am confused by the diff -- it seems like this PR just fixes a recently-introduced (I think) regression? We've fixed this enum issue long time ago by a fast dict lookup (#546), but that fix seems to be gone (and replaced by a presumably even-faster memoization in this PR). |
Ah, I see. The "regression" was introduced in the fast enum refactoring (#1581). So with this PR it means regardless of how fast the enum implementation (builtin or custom) is the memoization is always needed... 🙂 |
See #1638 for details as to why this works.
On my machine with the #659 benchmark, I see a reduction from 3.02us to 2.54us per iteration.