-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
levels: Do not keep more than one table builder in memory
`levelsController.compactBuildTables` writes tables to disk asynchronously in the background by spawning a goroutine per iteration of the loop. This has two unfortunate consequences: - There is a data race on the `builder` variable between iterations of the loop - An unlimited number of table builders can be open in memory at a point in time, which results in high memory usage and high amount of memory garbage
- Loading branch information
Showing
1 changed file
with
38 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters