Commit 4a0615c
perf: Apply decompression speedup from PR #42
Cherry-picked optimization improvements from Peter Ferrie's PR #42:
- Move sec out of hot path (set once instead of repeatedly)
- Replace jmp with bne (2 cycles vs 3)
- Eliminate redundant branching in .src3A
- Reorder instructions to avoid pipeline stalls
This provides measurable speedup in the decompression loop which
runs frequently during game loading.
Original commit: b258ed4 by Peter Ferrie
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e2d6af7 commit 4a0615c
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
| 185 | + | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | | - | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
0 commit comments