Software /
code /
prosody
File
spec/scansion/empty_bookmarks.scs @ 13134:638f627e707f
util.datamanager: Add O(1) list indexing with on-disk index
Index file contains offsets and lengths of each item() which allows
seeking directly to each item and reading it without parsing the entire
file.
Also allows tricks like binary search, assuming items have some defined
order.
We take advantage of the 1-based indexing in tables to store a magic
header in the 0 position, so that table index 1 ends up at file index 1.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 11 May 2021 02:09:56 +0200 |
parent | 12593:1832b6c9c6ed |
line wrap: on
line source
# mod_scansion_record on host 'localhost' recording started 2022-07-26T21:39:55Z [Client] Romeo password: password jid: juliet@localhost/UaksS4M1xYZB ----- Romeo connects Romeo sends: <iq xml:lang='en' type='get' id='bNBJLtpIJXpq'> <pubsub xmlns='http://jabber.org/protocol/pubsub'> <items node='storage:bookmarks'/> </pubsub> </iq> Romeo receives: <iq id='bNBJLtpIJXpq' type='error'> <error type='cancel'> <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> </error> </iq> Romeo disconnects # recording ended on 2022-07-26T21:40:45Z