Skip to content

Terser/worker threads - #1172

Closed
Toxicable wants to merge 2 commits into
bazel-contrib:masterfrom
Toxicable:terser/worker_threads
Closed

Toxicable wants to merge 2 commits into
bazel-contrib:masterfrom
Toxicable:terser/worker_threads

Conversation

@Toxicable

@Toxicable Toxicable commented Sep 22, 2019 •

Copy link
Copy Markdown

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

  • Feature (please, look at the "Scope of the project" section in the README.md file)

What is the current behavior?

@bazel/terser uses child_process for it's workers
Issue Number: #1177

What is the new behavior?

When a directory is passed as input, worker_threads are spin up as the workers instead of child processes.

Does this PR introduce a breaking change?

  • No

Other information

Fabian Wiles added 2 commits September 22, 2019 14:02
Using a pool of worker threads we'll get
better performance when compressing
multiple files at the same time, since we
avoid the overhead of starting new processes
and we can reused previously spawened
threads
@alexeagle

Copy link
Copy Markdown
Collaborator

still working on this one?

@alexeagle alexeagle closed this Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants