ammarahm-ed / react-native-mmkv-storage

An ultra fast (0.0002s read/write), small & encrypted mobile key-value storage framework for React Native written in C++ using JSI
https://rnmmkv.now.sh
MIT License
1.56k stars 109 forks source link

Could there be a speed benefit of using the RNNA Cxx Turbo Modules? #311

Closed krystofwoldrich closed 1 year ago

krystofwoldrich commented 1 year ago

In the 0.71 release of React Native, I noticed a simplified interface for pure Cpp Turbo Modules.

Could there be some speed gained by removing the Android and iOS middle parts and using the new Cpp interface?

As the whole DB is written in Cpp I would imagine it working pretty well.

Bruce-zxy commented 1 year ago

Good idea.

ammarahm-ed commented 1 year ago

I don't think it would result in any speed gains. Might help with DX but migrating to this new way of turbo modules is a pain.