Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse the result channel in QueryContexxt
This reduces the number of allocs needed by half. goos: darwin goarch: arm64 pkg: github.com/mattn/go-sqlite3 cpu: Apple M1 Max │ 2.txt │ 1.txt │ │ sec/op │ sec/op vs base │ Scan10Cols-10 267.7µ ± 1% 262.7µ ± 2% -1.86% (p=0.023 n=10) │ 2.txt │ 1.txt │ │ B/op │ B/op vs base │ Scan10Cols-10 17.057Ki ± 0% 6.070Ki ± 0% -64.41% (p=0.000 n=10) │ 2.txt │ 1.txt │ │ allocs/op │ allocs/op vs base │ Scan10Cols-10 247.0 ± 0% 138.0 ± 1% -44.13% (p=0.000 n=10)
- Loading branch information