PitilessPeanut / IncludeDB

Tiny key/value-store in a single, embeddable C file. For games, small servers, sbc, etc...
9 stars 1 forks source link

weird things are happening #1

Open alex-s168 opened 1 week ago

alex-s168 commented 1 week ago

It works fine for all keys with size <= 10, but when I call get() with a key longer than 10 bytes, it doesn't find it, even if it's already in the database. When I call put() after that, it adds it to the DB another time, but with partially uninitialized data. (And yes, calling get() again after that does the same thing)

PitilessPeanut commented 1 week ago

Hello Alex! Thank you for your comment super appreciated!!! As you might have expected, this project is FAR from finished/production ready! There are many issues and substantial effort will be required to move things forward. Right now I'm severely time-constrained and, while I still keep this project active, at least a couple of hours will be required every week to make progress. If you like to contribute feel free to submit a pullrequest or patch and I will be happy to merge! Greetings and thank you again for taking time explore this project! I will try to fix the most immediate issues asap!

alex-s168 commented 1 week ago

I'm using this for caching data of a tiny build system thingy and this is the only library that meets my requirements:

I hope that you will continue working on this awesome project