Skip to content

Memory usage for new modules made with JSI/Turbo modules #97

Answered by Kudo
TheRogue76 asked this question in Q&A
Discussion options

You must be logged in to vote

from my personal comment, pure c++ upon jsi is in theoretically faster than turbomodules. it could cost some overhead from language interoperability, e.g. passing data through jni on android comes with some cost. however, in real case it has other factors like the performance between apple CryptoKit and c++ hash library, if CryptoKit has some hardware optimization like SIMD support.

if your data is large, you could consider using ArrayBuffer. expo module api (which is not turbomodule) would have ArrayBuffer and TypedArray support in the next release.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@troZee
Comment options

troZee Nov 29, 2022
Collaborator

Answer selected by TheRogue76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants