Commit 8461e5f
[Autoloop: tsb-perf-evolve] Iteration 70: flat 4-if cache check (property-read before string-compare)
Reverts c069 (method extraction regression) back to c067 inline cold path,
then replaces the if/else+ternary hot-path check with a flat 4-if chain.
Hypothesis: direct property reads before naPosition string comparison lets
the JSC/Bun JIT constant-fold the dominant ascending=true, naPosition=last
case to a single property check and return.
Run: https://github.com/githubnext/tsb/actions/runs/26858622799
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2015c39 commit 8461e5f
1 file changed
Lines changed: 7 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
774 | 767 | | |
775 | | - | |
776 | | - | |
777 | 768 | | |
778 | 769 | | |
779 | 770 | | |
| |||
0 commit comments