perf: optimize tasks queuing implementation
[poolifier.git] / src / pools / abstract-pool.ts
index 603409f020a721eedff0b3f130c9f36462d91bb6..e11a2bbbc2d90d99d8668fbf24b8b063b40aba67 100644 (file)
@@ -4,12 +4,12 @@ import { EventEmitterAsyncResource } from 'node:events'
 import { performance } from 'node:perf_hooks'
 import type { TransferListItem } from 'node:worker_threads'
 
-import { defaultBucketSize } from '../priority-queue.js'
-import type {
-  MessageValue,
-  PromiseResponseWrapper,
-  Task,
-  TaskFunctionProperties,
+import {
+  defaultBucketSize,
+  type MessageValue,
+  type PromiseResponseWrapper,
+  type Task,
+  type TaskFunctionProperties,
 } from '../utility-types.js'
 import {
   average,