News for hackers. Stuff that matters.
Re:Better-sqlite3: A faster Sqlite library for Node.js by erulabs on Monday March 19, 2018 @04:54PM (#16623063)
Node does in fact come with "threading support", just in a non-obvious way (and not exactly exposed to the end-user). It depends on what module you're talking about, but libuv in general _does_ use a worker pool. For example, the "fs" module will, under the hood, make use of a thread pool. The "http" module use a different strategy depending on the operating system, etc.

"Asynchronous system APIs are used by Node.js whenever possible, but where they do not exist, libuv's threadpool is used to create asynchronous node APIs based on synchronous system APIs."

https://nodejs.org/api/cli.html#cli_uv_threadpool_size_size

There are no comments on this comment yet.