Closed frrad closed 3 years ago
This PR changes type lit to be byte instead of a struct containing a byte. This improves performance slightly at least on my workload.
type lit
byte
before: BenchmarkBlocksFromMemory-4 27 60508126 ns/op after: BenchmarkBlocksFromMemory-4 28 54614319 ns/op
Before: notice how much time decodeLiteral spends calling runtime.convT2Inoptr
decodeLiteral
runtime.convT2Inoptr
After: that call is eliminated
This PR changes
type lit
to bebyte
instead of a struct containing a byte. This improves performance slightly at least on my workload.Before: notice how much time
decodeLiteral
spends callingruntime.convT2Inoptr
After: that call is eliminated