Tobias Uhlig
Jul 17, 2024

--

Hi Tom,

some hints, if I may. For the normalised data, use a Map instead of an Object. Storing ids inside children is very risky => can get expensive. Especially when trees change at run-time, you would always need to adjust the maps in parallel. References to the real nodes & parent nodes simplifies this. I wrote about this topic inside my last blog post (also ITNEXT).

In general, since you mention "main thread" => OMT (off the main thread) is my field of expertise. You could potentially save huge amounts of time, in case you would take a dive into the neo.mjs project (github). To be fair: we need a couple more weeks to finish the new website & learning section, but you can just ping us inside the slack channel.

Best regards,

Tobias

--

--

No responses yet