Skip to content

Commit

Permalink
[Turbopack] lower indexing threshold (vercel#74655)
Browse files Browse the repository at this point in the history
### What?

This improves the performance. In cases where nodes have 500-1000 entries of one kind, this slows down iteration of the others.

This change improves this worse case.
  • Loading branch information
sokra authored Jan 9, 2025
1 parent 2dab0ed commit 5487a03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl PersistanceState {
}
}

const INDEX_THRESHOLD: usize = 1024;
const INDEX_THRESHOLD: usize = 128;

type IndexedMap<T> = AutoMap<
<<T as KeyValuePair>::Key as Indexed>::Index,
Expand Down

0 comments on commit 5487a03

Please sign in to comment.