Commit 5ceebd3
Overmind
perf: Branchless BWT inverse — +6% faster (31→33 MB/s)
Replace conditional (r < pidx ? r : r-1) with branchless
r - (r >= pidx). Compiler generates cmov instead of branch.
204 roundtrip tests pass.1 parent 2b6eeb2 commit 5ceebd3
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
| 299 | + | |
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
304 | 303 | | |
305 | 304 | | |
306 | 305 | | |
307 | 306 | | |
308 | | - | |
309 | | - | |
| 307 | + | |
| 308 | + | |
310 | 309 | | |
| 310 | + | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
0 commit comments