diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 13:54:10 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 13:54:10 +0300 |
| commit | 274abc013e4b914b005191a7f74eaf2961a1e59e (patch) | |
| tree | 1b515d6869cf8f63c5373b471c0c1b83a2da4e53 /src/internal.h | |
| parent | 4741f7a6dfa144ce65cf3bbdd4a1bc6bee6df2e5 (diff) | |
Optimize loops and data structures in hist.c and hist_view.c
- Unroll fast paths in put_varint and get_varint
- Replace while capacity loop with branchless term_grow_cap in runs_reserve
- Vectorize continuation ring rehash with slice memcpy in cont_push
- Fast-check simple line runs using combined bitwise XOR-OR mask in evict_simple_run
- Resume batch simple-run eviction on interrupted sweeps in evict_for
- Eliminate unused page_rows and page_simple allocations (>320 KB heap saved)
- Add zero-delta bypass in Fenwick tree set_count
- Replace iterative capacity loop with branchless term_next_pow2_32 in hist_view_sync
- Eliminate prefix-walk in term_hist_view_find_row by reusing Fenwick remainder
- Simplify upward and downward viewport movement in term_hist_view_scroll
Diffstat (limited to 'src/internal.h')
0 files changed, 0 insertions, 0 deletions
