Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to use Web Workers for certain tasks to improve performance #632

Open
stefandesu opened this issue Nov 4, 2021 · 4 comments
Open

Try to use Web Workers for certain tasks to improve performance #632

stefandesu opened this issue Nov 4, 2021 · 4 comments
Labels
cleanup code cleanup, refactoring, testing...
Milestone

Comments

@stefandesu
Copy link
Member

"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.

@stefandesu stefandesu added this to the 1.5.0 milestone Nov 4, 2021
@nichtich
Copy link
Member

nichtich commented Nov 5, 2021

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.

@stefandesu
Copy link
Member Author

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.

@stefandesu stefandesu modified the milestones: 1.5.0, 2.0.0 Nov 16, 2021
@stefandesu
Copy link
Member Author

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.

@nichtich nichtich added the cleanup code cleanup, refactoring, testing... label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup code cleanup, refactoring, testing...
Projects
None yet
Development

No branches or pull requests

2 participants