perf: use optimized circular buffer implementation to store measurements history
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 21 May 2024 19:38:17 +0000 (21:38 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 21 May 2024 19:38:17 +0000 (21:38 +0200)
commitf12182ad6dc553c7a5dfeee01bcde65c0177f671
tree3ef2f64389c4b9d3ff3ab74d734712522e3edfef
parent80115618ce24038f504dc447dfb7c4fbd9c5d698
perf: use optimized circular buffer implementation to store measurements history

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
16 files changed:
.eslintrc.cjs
package.json
pnpm-lock.yaml
src/circular-array.ts [deleted file]
src/circular-buffer.ts [new file with mode: 0644]
src/index.ts
src/pools/abstract-pool.ts
src/pools/utils.ts
src/pools/worker-node.ts
src/pools/worker.ts
tests/circular-array.test.mjs [deleted file]
tests/circular-buffer.test.mjs [new file with mode: 0644]
tests/pools/abstract-pool.test.mjs
tests/pools/selection-strategies/selection-strategies.test.mjs
tests/pools/utils.test.mjs
tests/pools/worker-node.test.mjs