From: Chris Duncan Date: Thu, 21 Nov 2024 05:23:51 +0000 (-0800) Subject: Add small log statement for tracking pool performance. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=8398db0370ed6b12920a907602ea0d169649d55d;p=libnemo.git Add small log statement for tracking pool performance. --- diff --git a/src/lib/pool.ts b/src/lib/pool.ts index b153485..9651205 100644 --- a/src/lib/pool.ts +++ b/src/lib/pool.ts @@ -55,6 +55,9 @@ export class Pool { #report (thread: Thread, result: any) { this.#results.push(result) + if (this.#results.length % 1000 === 0) { + console.log(`pool results: ${this.#results.length}`) + } thread.isBusy = false if (this.#queue.length > 0) { this.#assign(thread)