Skip to content

Commit

Permalink
perf: reduce runOptimizerIfIdleAfterMs time (#12614)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Mar 29, 2023
1 parent d051639 commit d026a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/optimizer/optimizer.ts
Expand Up @@ -670,7 +670,7 @@ async function createDepsOptimizer(
}
}

const runOptimizerIfIdleAfterMs = 100
const runOptimizerIfIdleAfterMs = 50

let registeredIds: { id: string; done: () => Promise<any> }[] = []
let seenIds = new Set<string>()
Expand Down

0 comments on commit d026a65

Please sign in to comment.