-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
writer: Don't grow children array by one each time
Each time a child is added we grow by 1, which causes a lot of reallocs when adding children. Growing capacity by doubling saves us about 10% of the time of a mkcomposefs --from-image run. Signed-off-by: Alexander Larsson <[email protected]>
- Loading branch information
1 parent
85da98b
commit 8cd12a1
Showing
2 changed files
with
18 additions
and
11 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
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