Quality.cpp defines a structure for convenient storage of Top N items, it should be used instead of the std::priority_queue with slightly obscure semantics.
This patch does not affect functionality.
Differential D51676
[clangd] NFC: Use TopN instead of std::priority_queue kbobyrev on Sep 5 2018, 2:59 AM. Authored by
Details Quality.cpp defines a structure for convenient storage of Top N items, it should be used instead of the std::priority_queue with slightly obscure semantics. This patch does not affect functionality.
Diff Detail
Event TimelineComment Actions Thanks for cleaning this up! I believe this will result in the results from MemIndex being returned in best -> worst order, rather than worst -> best.
Comment Actions Right. The index explorer would probably still have to re-order elements (so that it actually doesn't rely on implementation details and implicit assumptions). For the completion part, IIUC the complete ranking would rearrange items anyway. |