perf: use a single map to store pool workers and their related data
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 2 Apr 2023 11:55:59 +0000 (13:55 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 2 Apr 2023 11:55:59 +0000 (13:55 +0200)
commitffcbbad84f63b8a77f2b1a08f82deef5430f646e
tree51e20603be640a08883631953ac534854cc4742e
parent1d71a90829622a3541c2530c90b208e9e72ba9ec
perf: use a single map to store pool workers and their related data

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
18 files changed:
CHANGELOG.md
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-recently-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/cluster/fixed.test.js
tests/pools/selection-strategies/selection-strategies.test.js
tests/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.test.js
tests/pools/thread/dynamic.test.js
tests/pools/thread/fixed.test.js
tests/test-utils.js
tests/worker/thread-worker.test.js