node/lib/internal/cluster
Yash Ladha 6faa162f55
lib: changed functional logic in cluster schedulers
Free pool in round_robin scheduler is implemented as an array. There
were constant lookups being for distributing load on other workers in
free pool. Reimplementing in Map will create will be more performant as
compared to Array implementation. This was done for all in past but free
wasn't implemented at that time.

PR-URL: https://github.com/nodejs/node/pull/32505
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2020-04-07 20:36:20 +02:00
..
child.js lib: replace Map global by the primordials 2020-01-04 14:56:52 -08:00
master.js lib: use spread operator on cluster 2020-03-12 16:58:08 +01:00
round_robin_handle.js lib: changed functional logic in cluster schedulers 2020-04-07 20:36:20 +02:00
shared_handle.js lib: changed functional logic in cluster schedulers 2020-04-07 20:36:20 +02:00
utils.js lib: replace Map global by the primordials 2020-01-04 14:56:52 -08:00
worker.js lib: flatten access to primordials 2019-11-25 10:28:15 +01:00