mbdavid / LiteDB

LiteDB - A .NET NoSQL Document Store in a single data file
http://www.litedb.org
MIT License
8.55k stars 1.25k forks source link

Implement MessagePack to speedup #2334

Open ymg2006 opened 1 year ago

ymg2006 commented 1 year ago

Hello It is feasible to make the LiteDB really fast with less RAM and disk space consumption with MessagePack-CSharp. MessagePack is portable and has built-in lz4 compression. Thanks for your consideration.

thijse commented 1 year ago

The creator of MessagePack has made a new library which might be an even better alternative: MemoryPack (https://github.com/Cysharp/MemoryPack)

mbdavid commented 1 year ago

Hi guys, those serializers are both scheme-less, so it´s no possible to use in a document oriented database (if I want open this document ouside this program with user-type definition). This new MemoryPacks use source generator to create data convert... what is fantastic!! This could be implemented here... auto-generate source code to convert BsonDocument into UserClass.

Thanks for your comments