Commit 70618f3
perf: restore integer comparison in comptime_match for power-of-2 sizes
Use fast integer comparison (u8/u16/u32/u64) for 1/2/4/8-byte words.
Fall back to std.mem.eql for non-power-of-2 sizes (e.g. 6-byte words
like "export") which caused failures with u48 on Linux.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b631d2a commit 70618f3
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
13 | 25 | | |
14 | 26 | | |
15 | 27 | | |
| |||
0 commit comments