Skip to content

Commit 06d2d96

Browse files
andrewbranchCopilot
andcommitted
core: pass queued work directly to WaitGroup.Go
Perf (vscode, unpinned; indicative): TsconfigChange -5.6% allocs; InitialLoad -2% allocs. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: afcfca01-a049-4749-ad08-1c00c586f6a1
1 parent dc8ef5e commit 06d2d96

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎tsc/internal/core/workgroup.go‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ func (w *parallelWorkGroup) Queue(fn func()) {
3636
panic("Queue called after RunAndWait returned")
3737
}
3838

39-
w.wg.Go(func() {
40-
fn()
41-
})
39+
w.wg.Go(fn)
4240
}
4341

4442
func (w *parallelWorkGroup) RunAndWait() {

0 commit comments

Comments
 (0)