Replies: 1 comment 1 reply
-
Why don't you use an async webworker? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to propose an enhancement for
noble-ciphers
to support interruptible cipher operations with progress callbacks, particularly beneficial for processing very long data in environments like React Native and web.The library is excellent; however, I'm encountering issues with large datasets causing the main execution thread to stall for a few seconds, resulting in a slightly unresponsive appearance for the app.
This feature would allow passing an optional callback function to cipher methods, which would be invoked approximately every 100ms (user defined). This callback could provide progress updates (if possible) and offer a mechanism to interrupt the ciphering process if needed, enhancing usability for large datasets and improving application responsiveness.
One possible implementation approach could involve maintaining a timestamp in the main event loop to track the last time the progress callback was invoked.
Beta Was this translation helpful? Give feedback.
All reactions