-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loader: avoid reader interface conversion
Converting R to ByteReader causes a convI2I call, and it's not necessary in order to call one of its methods. Varuint32() dominates CPU profile. benchmark old ns/op new ns/op delta BenchmarkLoad001/Init-8 103866 52783 -49.18% BenchmarkLoad001/Code-8 35597441 30571208 -14.12% BenchmarkLoad001/Data-8 1676 1538 -8.23% benchmark old MB/s new MB/s speedup BenchmarkLoad001/Init-8 43.76 86.11 1.97x BenchmarkLoad001/Code-8 26.74 31.14 1.16x
- Loading branch information
Showing
1 changed file
with
31 additions
and
15 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