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.35% (p=0.000 n=19+18) FlowSetup/vectorize=true/distribute=false-16 138µs ± 4% 129µs ± 3% -6.80% (p=0.000 n=19+18) FlowSetup/vectorize=false/distribute=true-16 134µs ± 2% 124µs ± 4% -7.55% (p=0.000 n=20+17) FlowSetup/vectorize=false/distribute=false-16 129µs ± 3% 120µs ± 3% -6.98% (p=0.000 n=20+18) name old alloc/op new alloc/op delta FlowSetup/vectorize=true/distribute=true-16 38.1kB ± 2% 36.8kB ± 3% -3.53% (p=0.000 n=18+19) FlowSetup/vectorize=true/distribute=false-16 36.2kB ± 0% 34.8kB ± 0% -3.93% (p=0.000 n=17+17) FlowSetup/vectorize=false/distribute=true-16 42.6kB ± 0% 41.2kB ± 0% -3.30% (p=0.000 n=18+16) FlowSetup/vectorize=false/distribute=false-16 41.0kB ± 0% 39.6kB ± 0% -3.44% (p=0.000 n=16+18) name old allocs/op new allocs/op delta FlowSetup/vectorize=true/distribute=true-16 368 ± 0% 345 ± 0% -6.25% (p=0.000 n=16+16) FlowSetup/vectorize=true/distribute=false-16 354 ± 0% 331 ± 0% -6.50% (p=0.000 n=18+18) FlowSetup/vectorize=false/distribute=true-16 337 ± 0% 315 ± 1% -6.69% (p=0.000 n=19+19) FlowSetup/vectorize=false/distribute=false-16 325 ± 0% 302 ± 0% -7.08% (p=0.000 n=17+18) ``` Release note: None
- Loading branch information