Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: skip unused Errorf() call in storage
some CRC32 checks can cause lots of failing calls to decodeUint32, generating a new 'fmt.Errorf()', but the error is never actually read, it is only checked for nil condition. Replacing with a (reused) more generic error prevents lots of allocations leading to less stress on the GC.
- Loading branch information