Skip to content
Discussion options

You must be logged in to vote

Do you think using workers to distribute creating the file system entries could greatly boost cached installs?

We're using async I/O so they probably wouldn't, to quote the docs:

Workers (threads) are useful for performing CPU-intensive JavaScript operations. They do not help much with I/O-intensive work. The Node.js built-in asynchronous I/O operations are more efficient than Workers can be.
https://nodejs.org/docs/v20.18.0/api/worker_threads.html#worker-threads

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sod
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #6552 on October 10, 2024 11:06.