saus icon indicating copy to clipboard operation
saus copied to clipboard

Cache the worker pool globally for multiple build calls

Open aleclarson opened this issue 4 years ago • 0 comments

Currently, each build call manages its own worker pool, but that means multiple builds will incur the same startup penalty when they could be reusing workers from previous builds.

The proposed feature would introduce a terminateWorkerPool exported function that you would only call when you're done calling build for the rest of your program.

aleclarson avatar Oct 10 '21 02:10 aleclarson