Files
zig/lib
Prokop Randáček 02097dff70 setKey shouldn't recompute the entire index
setKey used to just call rebuildIndex which allocates a new index and
inserts into it all entries. This is the only allocation that setKey
needed to do.

Instead I propose that setKey sets the key in the entries and then does
a remove of the old key from the index and insert of the new key into
the index. This eliminates the need for setKey to allocate and makes
it infallible

To achieve this I extracted a helper function for inserting a single
entry into the index. Function for removing one entry from the index
already exists. setKey now just calls these two functions.
2026-05-02 20:15:10 +02:00
..
2026-04-26 19:26:16 +02:00
2026-04-22 16:11:02 -07:00
2026-04-16 19:21:16 +02:00