Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Dodrio in web worker #127

Open
olanod opened this issue Jan 25, 2020 · 1 comment
Open

Dodrio in web worker #127

olanod opened this issue Jan 25, 2020 · 1 comment

Comments

@olanod
Copy link

olanod commented Jan 25, 2020

Would it be feasible to make Dodrio run in a web worker by doing the diffing and everything else in the worker and only applying the change list in the main thread? perhaps the bridging can use a SharedArrayBuffer if available or some efficient serialization mechanism also used to bridge user evens 🤔

@frank-dspeed
Copy link

you need to keep in mind the cost of serialization and deserialization in general that is possible but it would need some more logic. An Implementation that would sync the whole dom tree would be slow probably at scale.

I have found only one Algo that would work in that scenario but it is highly experimental research.

I hook into the MutationObserver for the DOM and sync that Batched Changes to WASM which gets on Init the Intal dom + changes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants