New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mmapstorage #1990
mmapstorage #1990
Conversation
7c39e23
to
3b7228f
Compare
ad92a48
to
769746f
Compare
@mpranj lgtm |
Thanks, and thanks for putting all the hard work into the build system! |
178dfc0
to
b267b4b
Compare
ed8cb81
to
c83fc9b
Compare
0ee09c3
to
ea942cb
Compare
5cbf919
to
d51d7b8
Compare
@markus2330 other than the README, no major rewrites of the plugin are planned. The benchmarks will be improved, and a few tests might be added. I plan to review everything again myself before I mark it as ready. If you want to do a preliminary review of the plugin code, it would make sense for me now. NB: The checks haven't completed, but if something is broken it is nothing of major concern. Locally everything runs fine. |
It is better if you finish it first! Without a README.md reviewing is difficult. |
…variants, add regression test, add crc test
…calculation inside the format
Thank you for the thorough review! I made the requested changes.
If you have further change requests, please tell. Otherwise it can be merged. |
Thank you! A pleasure to merge such great code. |
Purpose
Introducing the
mmapstorage
plugin.A simple storage plugin benchmark is added to compare it to
dump
. Many storage plugin tests were added to ctest. It does not yet store the OPMPHM data structure, but is compatible when OPMPHM is enabled. Two variants are compiled:mmapstorage
, andmmapstorage_crc
if zlib is available. The latter enables CRC32 checksum for the critical data (pointers, sizes, ...).This is not the global cache plugin.
To enable it with cmake one can use
-DKDB_DEFAULT_STORAGE=mmapstorage -DKDB_DB_FILE='default.mmap' -DKDB_DB_INIT='elektra.mmap'
.Checklist