Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql/catalog/descs: optimize access to the system db
We tend to access the system database a lot and we never cache it in the lease manager. Before this patch, we'd always copy and re-allocate a pair of them. There's no need to do that. ``` name old time/op new time/op delta FlowSetup/vectorize=true/distribute=true-16 141µs ± 3% 132µs ± 4% -6.14% (p=0.000 n=19+20) FlowSetup/vectorize=true/distribute=false-16 138µs ± 4% 128µs ± 3% -7.36% (p=0.000 n=19+19) FlowSetup/vectorize=false/distribute=true-16 134µs ± 2% 123µs ± 3% -7.78% (p=0.000 n=20+20) FlowSetup/vectorize=false/distribute=false-16 129µs ± 3% 119µs ± 3% -7.51% (p=0.000 n=20+19) name old alloc/op new alloc/op delta FlowSetup/vectorize=true/distribute=true-16 38.1kB ± 2% 36.5kB ± 2% -4.19% (p=0.000 n=18+18) FlowSetup/vectorize=true/distribute=false-16 36.2kB ± 0% 34.6kB ± 0% -4.32% (p=0.000 n=17+17) FlowSetup/vectorize=false/distribute=true-16 42.6kB ± 0% 41.1kB ± 0% -3.63% (p=0.000 n=18+16) FlowSetup/vectorize=false/distribute=false-16 41.0kB ± 0% 39.4kB ± 0% -3.76% (p=0.000 n=16+18) name old allocs/op new allocs/op delta FlowSetup/vectorize=true/distribute=true-16 368 ± 0% 342 ± 0% -7.07% (p=0.000 n=16+17) FlowSetup/vectorize=true/distribute=false-16 354 ± 0% 328 ± 0% -7.34% (p=0.000 n=18+17) FlowSetup/vectorize=false/distribute=true-16 337 ± 0% 312 ± 1% -7.63% (p=0.000 n=19+19) FlowSetup/vectorize=false/distribute=false-16 325 ± 0% 299 ± 0% -8.00% (p=0.000 n=17+18) ``` Release note: None
- Loading branch information