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

Terser/worker threads #1172

Closed

Conversation

Toxicable
Copy link

@Toxicable Toxicable commented Sep 22, 2019

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