Software /
code /
prosody
Comparison
util-src/time.c @ 13136:396db0e7084f
mod_storage_internal: Use a binary search for time based ranges
Iterating over an entire archive to find a few items in the far end from
where iteration started is expensive, and probably more expensive with
the lazy-loading of items added in the previous commit.
Since we can now efficiently read items in random order, we can now use
a binary search to find a better starting point for iteration.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 12 May 2021 01:32:03 +0200 |
parent | 12976:a187600ec7d6 |
comparison
equal
deleted
inserted
replaced
13135:3fd24e1945b0 | 13136:396db0e7084f |
---|