Open stefandesu opened 3 years ago
To start, we could perform loading concept data inside a Web Worker, for example.
I think cost of loading is mainly network but Web Workers can only help to speed up computation.
I think cost of loading is mainly network but Web Workers can only help to speed up computation.
Yeah, that might be the case. As I'm currently finding out that Cocoda's slowness seems to come mainly from inefficient computed properties, this might not be necessary.
This might still be interesting to consider for certain cases, but it's not immediately relevant anymore, so I moved it to 2.0.0.
"Web Workers are a simple means for web content to run scripts in background threads." We could try to move certain tasks to a Web Worker in order to ease the JavaScript main thread and improve performance.
To start, we could perform loading concept data inside a Web Worker, for example.
Vite natively supports Web Workers, so implementation should be easy. However, I'm not sure if we can use dependencies inside of Web Workers, so this might make things more difficult.