-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add zed.Value.Under parameter to avoid allocation (#4740)
Value.Under allocates memory on any call that does not return the receiver. This becomes spendy in runtime/expr.DotExpr.Eval on workloads that access fields of records with named types. Add a parameter to Under that, when not nil, points to a Value to use in lieu of allocating. goos: darwin goarch: arm64 pkg: github.com/brimdata/zed | before.txt | after.txt | | sec/op | sec/op vs base | ValueUnder/primitive-10 0.9348n ± 0% 0.9331n ± 1% ~ (p=0.617 n=10) ValueUnder/named-10 27.480n ± 0% 6.385n ± 1% -76.76% (p=0.000 n=10) geomean 5.068n 2.441n -51.84%
- Loading branch information
Showing
7 changed files
with
27 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
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
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
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