Software /
code /
prosody
File
CONTRIBUTING @ 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 | 9946:ceaca48a7e6d |
line wrap: on
line source
Thanks for your interest in contributing to the project! There are many ways to contribute, such as helping improve the documentation, reporting bugs, spreading the word or testing the latest development version. You can find more information on how to contribute at <https://prosody.im/doc/contributing> See also the HACKERS and README files.