Unverified Commit 5487a038 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

[Turbopack] lower indexing threshold (#74655)

### 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.
parent 2dab0ed2
...@@ -119,7 +119,7 @@ impl PersistanceState { ...@@ -119,7 +119,7 @@ impl PersistanceState {
} }
} }
const INDEX_THRESHOLD: usize = 1024; const INDEX_THRESHOLD: usize = 128;
type IndexedMap<T> = AutoMap< type IndexedMap<T> = AutoMap<
<<T as KeyValuePair>::Key as Indexed>::Index, <<T as KeyValuePair>::Key as Indexed>::Index,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment