Skip to content

It is somehow slower than synckit and can be faster #2

@JounQin

Description

@JounQin

I'm developing a similar util module inspired by this package and esbuild.

It is mainly using the structure from esbuild now with MessageChannel, and I run a benchmark https://github.com/rx-ts/synckit/blob/main/benchmarks/benchmark.txt, it seems much slower during runtime. I was thinking sync-threads would be much faster because it's using v8 serialization inside.

Maybe there are a few reasons:

  1. synckit creates the worker in top createSyncFn and reuse it every time, that's why the load time is much slower that sync-threads
  2. synckit use cache to speed up same file (not benchmarked)
  3. Maybe the serialization has been improved without v8 (not confirmed, I'm not familiar with v8)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions