perf: use worker key as much as possible instead of a reference to the
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 3 Apr 2023 15:13:07 +0000 (17:13 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 3 Apr 2023 15:13:07 +0000 (17:13 +0200)
commitc923ce5670eeae4194aa996d44a1071e88cb21ad
tree78633dfeaabf2a34cb283886e7d11e7d738525c7
parent2740a743fcbf64e0ee674530e3cbcf6df710c1ef
perf: use worker key as much as possible instead of a reference to the
worker instance

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
16 files changed:
src/pools/abstract-pool.ts
src/pools/pool-internal.ts
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/dynamic-pool-worker-choice-strategy.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/selection-strategies-types.ts
src/pools/selection-strategies/selection-strategies-utils.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/worker-choice-strategy-context.ts
src/utility-types.ts
tests/pools/abstract/abstract-pool.test.js
tests/pools/selection-strategies/selection-strategies.test.js
tests/pools/selection-strategies/worker-choice-strategy-context.test.js