-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bulk import: reduce allocations by allocation a value buffer
For each call to Values the tupleSourceAdapter would allocate a new slice. For the default batch size in `zed` this means 1000 slices on each batch iteration, and is a lot of garbage generated for large imports. This reduced the observed allocations while processing one batch of the bulk import by 50%.
- Loading branch information
1 parent
d479967
commit 95faa1f
Showing
1 changed file
with
16 additions
and
14 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