Software /
code /
prosody
Annotate
spec/scansion/version.scs @ 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 | 10729:dbce2b94a7eb |
rev | line source |
---|---|
10729 | 1 # XEP-0092: Software Version / mod_version |
2 | |
3 [Client] Romeo | |
4 password: password | |
5 jid: romeo@localhost/dfaZpuxV | |
6 | |
7 ----- | |
8 | |
9 Romeo connects | |
10 | |
11 Romeo sends: | |
12 <iq id='lx2' to='localhost' type='get'> | |
13 <query xmlns='jabber:iq:version'/> | |
14 </iq> | |
15 | |
16 # Version string would vary so we can't do an exact match atm | |
17 # Inclusion of <os/> is disabled in the config, it should be absent | |
18 Romeo receives: | |
19 <iq id='lx2' from='localhost' type='result'> | |
20 <query xmlns='jabber:iq:version' scansion:strict='true'> | |
21 <name>Prosody</name> | |
22 <version scansion:strict='false'/> | |
23 </query> | |
24 </iq> | |
25 | |
26 | |
27 Romeo disconnects |