May 2, 2026
4:11 p.m.
Stephan Seitz (@theHamsta) commented about server/registry.c:
{ int i, min, max, res; data_size_t len; + bool first_comparison = true;
min = 0; max = key->last_subkey; while (min <= max) { - i = (min + max) / 2; + /* when loading from sorted data, most entries are inserted at the last position */ + i = first_comparison ? max : (min + max) / 2; we could do that extra comparison only on registry loading.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10804#note_138653