Preferences

How does react-native-mmkv-storage store data under-the-hood?

When I was building SwiftStore - a KV store [1] for iOS, I went with LevelDB as the choice for the underlying database.

LevelDB because it's written in c++ and used widely as an embedded database. Integrating it as a static library in Objective-C is also fairly straight forward.

[1] https://github.com/hemantasapkota/SwiftStore


MMKV uses mmap to keep memory synced with file, and protobuf to encode/decode values, making the most of iOS/macOS to achieve best performance and uses c++

This item has no comments currently.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal