go/token: AddFile induces heavy contention in parallel parsing [freeze exception] #53507
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Performance
release-blocker
Milestone
https://go-review.googlesource.com/c/go/+/411909 reduces two sources of contention in parser-heavy workloads: FileSet.AddFile allocates memory in the middle of an otherwise tiny critical section, and FileSet.Pos uses a mutex to guard a cache, turning read-only operations into exclusive locks. Both are major sources of contention in gopls.
I'd like to include the fix in the next release.
@golang/release @gri @findleyr
The text was updated successfully, but these errors were encountered: