perf: avoid branching on pool type
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 22 Dec 2023 21:30:32 +0000 (22:30 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 22 Dec 2023 21:30:32 +0000 (22:30 +0100)
commit9d9fb7b64a28d150583fe1bcd895893f6736d9d4
tree10ce467eaf2fd50ee202192a82d29aa0497768da
parent31d7126774bba6e7c0793053f7635501cd88fa3f
perf: avoid branching on pool type

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/circular-array.ts
src/pools/abstract-pool.ts
src/pools/cluster/dynamic.ts
src/pools/cluster/fixed.ts
src/pools/thread/dynamic.ts
src/pools/thread/fixed.ts
src/pools/utils.ts