Skip to content

Performance concern on initialize web worker at every function wrapped by threadify #5

@ryancat

Description

@ryancat

This is more like a thought or possible enhancement. From what I understand, web workers are designed to be slow start and long running. I read an article saying it usually takes around 40 ms to initialize a web worker, which is way over 17ms and may cause lagging in UI.

https://hacks.mozilla.org/2015/07/how-fast-are-web-workers/

I think maybe there should be a way to share the worker and create new ones only when necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions