mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-02-06 04:28:29 +01:00
![PixelyIon](/assets/img/avatar_default.png)
Buffer lookups are a fairly expensive operation that we currently spend `O(log n)` on the simplest and most frequent case of which is a direct match, this is a very frequent operation where that may be insufficient. This commit optimizes that case to `O(1)` by utilizing a `RangeTable` at the cost of slightly higher insertion/deletion costs for setting ranges of values but these are minimal in frequency compared to lookups.