import Piscina from 'piscina';
export function makePool({threads=2,maxQueue=8,...other}={}){
 return new Piscina({filename:new URL('./worker.mjs',import.meta.url).href,minThreads:threads,maxThreads:threads,maxQueue,idleTimeout:10000,concurrentTasksPerWorker:1,resourceLimits:{maxOldGenerationSizeMb:64},...other});
}
