main: read_cache(): optimize; application list is now sorted
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Since both the application list *and* the cache file are now sorted, we can optimize further, by progressing both lists in lock-step. That is, for each cache line, we can start searching the application list from where we stopped the last time. And we only need to search until we find an application that either matches, or is "past" our cache line.
authored by Daniel Eklöf · committed by Daniel Eklöf · parent d5f93cc · Browse files · 1 file+7 added−20 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+7 added−20 removed
- other:+7 added−20 removed