perf(core): Some optimizations (#40)
Now 1.16x times faster than previous main.
```
hyperfine -m 20 -w 10 -n perf "cd perf && just ci" -n main "cd main && just ci"
Benchmark 1: perf
Time (mean ± σ): 114.5 ms ± 1.7 ms [User: 77.2 ms, System: 32.3 ms]
Range (min … max): 111.7 ms … 119.3 ms 25 runs
Benchmark 2: main
Time (mean ± σ): 133.3 ms ± 1.7 ms [User: 91.7 ms, System: 36.5 ms]
Range (min … max): 130.9 ms … 137.2 ms 22 runs
Summary
perf ran
1.16 ± 0.02 times faster than main
```
authored by
oeiuwq.com
and committed by