repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
875a7c3
)
perf: optimize fixed pool busyness detection
author
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 10 Apr 2023 04:07:04 +0000
(06:07 +0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 10 Apr 2023 04:07:04 +0000
(06:07 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/pools/abstract-pool.ts
b/src/pools/abstract-pool.ts
index 661eb7b6ec363c228ad0c540f43b44361b76e75e..1a1a89fbcb57043c975e561e52b9962d68f35a3a 100644
(file)
--- a/
src/pools/abstract-pool.ts
+++ b/
src/pools/abstract-pool.ts
@@
-214,10
+214,7
@@
export abstract class AbstractPool<
public abstract get busy (): boolean
protected internalBusy (): boolean {
- return (
- this.numberOfRunningTasks >= this.numberOfWorkers &&
- this.findFreeWorkerNodeKey() === -1
- )
+ return this.findFreeWorkerNodeKey() === -1
}
/** @inheritDoc */