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
hi there, i'm making a new app the involves a some cpu-intensive stuff involving reactflow, web audio and making a lot of edits in automerge. i've noticed that the ui updates slow down a lot when i integrated automerge, and so i'm wondering if it's possible to run automerge-repo in a worker thread? I've made a few attempts at this, but it seems either vite or automerge don't play nicely with workers.
The text was updated successfully, but these errors were encountered:
You can definitely run automerge in a worker thread - we do this a lot in various projects including tiny essay editor. What error specifically are you getting?
Oh, that's encouraging—thank you, I really appreciate this response. I regret that I’m unable to share a specific error right now, and I recognize that’s not very helpful here. Generally, it seems like the worker isn’t initializing the document or perhaps isn’t loading libraries either in the right order or at the right time. I also realize I’m a bit unclear on which parts of Automerge should be running in the worker versus the main thread
Would you have any guidance on structuring worker scripts with Automerge, or on specific library imports that should happen in the worker setup? I’d be grateful for any general advice on how to handle this kind of initialization.
hi there, i'm making a new app the involves a some cpu-intensive stuff involving reactflow, web audio and making a lot of edits in automerge. i've noticed that the ui updates slow down a lot when i integrated automerge, and so i'm wondering if it's possible to run automerge-repo in a worker thread? I've made a few attempts at this, but it seems either vite or automerge don't play nicely with workers.
The text was updated successfully, but these errors were encountered: