perf: use a single array to store pool workers and their related data
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 2 Apr 2023 20:10:47 +0000 (22:10 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 2 Apr 2023 20:10:47 +0000 (22:10 +0200)
commite65c6cd9a3d6ed2e5b8af95120a5aa070101e945
tree329b4fce257e200dd277201beeda5cf897e3d7cc
parentd4abc60abeea2538c1452ae6d8bd2463bdacc910
perf: use a single array to store pool workers and their related data

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
13 files changed:
src/pools/abstract-pool.ts
src/pools/cluster/dynamic.ts
src/pools/pool-internal.ts
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts
src/pools/selection-strategies/less-busy-worker-choice-strategy.ts
src/pools/selection-strategies/less-used-worker-choice-strategy.ts
src/pools/selection-strategies/round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
src/pools/thread/dynamic.ts
tests/pools/abstract/abstract-pool.test.js
tests/pools/cluster/dynamic.test.js
tests/pools/thread/dynamic.test.js
tests/test-utils.js