-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify several internal functions to avoid allocating unnecessary memory. This commit employs three strategies: - Allocate a scans slice only when scanning the first row, and store it inside the RowScanner to reuse on subsequent rows. - When scanning into slices, use more sophistocated reflection code to extend the slie while avoid temporary slice header allocations. - When scanning into slices of non-pointers, scan directly into the slice index, rather than allocate a new value and copy after scanning.
- Loading branch information
Showing
2 changed files
with
43 additions
and
16 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