perf: drastically reduce worker nodes array lookups
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 21 Jul 2023 11:48:12 +0000 (13:48 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 21 Jul 2023 11:48:12 +0000 (13:48 +0200)
commitaa9eede876376ffbb6d8585192f3865849252f5c
tree84ec505a071b2168fabf0d80c3756f5647cc9893
parent501aea93c14789538c4e221fbab2f8afb80f4cf9
perf: drastically reduce worker nodes array lookups

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
CHANGELOG.md
src/pools/abstract-pool.ts
src/pools/cluster/fixed.ts
src/pools/pool.ts
src/pools/selection-strategies/worker-choice-strategy-context.ts
src/pools/thread/fixed.ts
src/worker/abstract-worker.ts
tests/pools/selection-strategies/worker-choice-strategy-context.test.js