HNHacker News
TopNewBestAskShowJobs

ammarahmed6506

8 karma · joined March 21, 2020

submissionscomments
ammarahmed6506··on Stop Building Closed Ecosystems
Stop adding comments starting with "Stop bla bla bla".
ammarahmed6506··on Notesnook (encrypted notes app) is going open source
Finally after a year it's happening.
ammarahmed6506··on Show HN: Fast database for React Native with multiple data-type support
Its simple and easy to use if you dont have a very complex data structure.
ammarahmed6506··on Show HN: Fast database for React Native with multiple data-type support
Basically I forked this code from another repo and worked over it so the initial work is theirs. I will look into optimizing this as soon as possible. What do you think? Should callbacks be used instead of Promise?
ammarahmed6506··on Show HN: Fast database for React Native with multiple data-type support
That is true but still MMKV due to its simplicity and small size is a very fast option over AsynStorage on both android and iOS. It has been used in the WeChat app used in China for datastorage.
ammarahmed6506··on Show HN: Fast database for React Native with multiple data-type support
Go to github.com/Tencent/MMKV to see benchmarks for iOS and android
ammarahmed6506··on Show HN: Fast database for React Native with multiple data-type support
MMKV is pretty straight forward, you can use it very easily on obj c or java only. Check the native code on the repo.
ammarahmed6506··on Show HN: Fast database for React Native with multiple data-type support
I think you are right. I was focusing on basic implementation. Now I will make the performance optimizations needed. For example using a single instance of created class for all get set methods and not create them on every call. Thanks for pointing it out.

The second thing about numbers is that its just in case you needed it for something, it is there but there are other ways to set the data too.

ammarahmed6506··on Show HN: Fast database for React Native with multiple data-type support
MMKV is a simple key-value store but the good thing is that it is fast, A custom indexer can be made for querying. However there is a method to get all the keys in the storage but its not exposed in react native side. Is that what you mean?
ammarahmed6506··on Show HN: Fast database for React Native with multiple data-type support
Yes its a replacment, a very fast one with all datatypes support, not only strings.