Skip to content

Commit

Permalink
Reduced the minimum time between analysis passes from 20ms to 5ms to …
Browse files Browse the repository at this point in the history
…improve startup performance.
  • Loading branch information
erictraut committed Sep 28, 2024
1 parent 4074d88 commit 37363e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pyright-internal/src/analyzer/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,7 @@ export class AnalyzerService {
// is too small (like zero), the VS Code extension becomes
// unresponsive during heavy analysis. If this number is too
// large, analysis takes longer.
const minTimeBetweenAnalysisPassesInMs = 20;
const minTimeBetweenAnalysisPassesInMs = 5;

const timeUntilNextAnalysisInMs = Math.max(
minBackoffTimeInMs - timeSinceLastUserInteractionInMs,
Expand Down

0 comments on commit 37363e1

Please sign in to comment.