You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am utilizing react-native-quick-crypto for cryptographic operations in a React Native project, specifically working with paillier-bigint for encryption and decryption. I have observed the following performance metrics:
Encryption Time: Approximately 3.3 seconds for 2048-bit keys
Decryption Time: Approximately 2 seconds for 2048-bit keys
In contrast, when testing paillier-bigint in a Node.js environment (without react-native-quick-crypto), the execution times were significantly lower:
Encryption Time: 35 ms
Decryption Time: 25 ms
Questions
Are the execution times observed in the React Native environment typical for cryptographic operations with react-native-quick-crypto?
Given the stark difference in performance compared to a Node.js environment, could there be any potential optimizations, configurations, or issues affecting react-native-quick-crypto performance?
Steps to Reproduce
Configure react-native-quick-crypto following the official documentation.
Implement encryption and decryption using paillier-bigint.
Measure the execution time for these operations in both React Native (with react-native-quick-crypto) and a standalone Node.js environment.
I am seeking guidance on whether the observed performance in the React Native environment is expected, and if not, any recommendations for improving these execution times would be greatly appreciated.
Thanks!
The text was updated successfully, but these errors were encountered:
I would suggest running RN dev tools + benchmarking and see which functions are taking the most time. You'll have to find a guide on how to do it. That way you can make an informed decision as to what's causing this. Generally I doubt it's this lib, since this lib just exposes openSSL and binds to it from the JS engine.
Environment
Description
I am utilizing
react-native-quick-crypto
for cryptographic operations in a React Native project, specifically working withpaillier-bigint
for encryption and decryption. I have observed the following performance metrics:In contrast, when testing
paillier-bigint
in a Node.js environment (withoutreact-native-quick-crypto
), the execution times were significantly lower:Questions
react-native-quick-crypto
?react-native-quick-crypto
performance?Steps to Reproduce
react-native-quick-crypto
following the official documentation.paillier-bigint
.react-native-quick-crypto
) and a standalone Node.js environment.I am seeking guidance on whether the observed performance in the React Native environment is expected, and if not, any recommendations for improving these execution times would be greatly appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: