Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Somewhat ameliorate perf regression from validation
It's still slower than before the validation checks, but now only 10-20% slower rather than 90-110% slower $ cargo bench --bench="*" -- --baseline=perf2 Compiling polyline v0.10.2 (/Users/mkirk/src/georust/polyline) Finished `bench` profile [optimized] target(s) in 0.77s Running benches/benchmarks.rs (target/release/deps/benchmarks-cc8f3ea04be06866) encode 10_000 coordinates at precision 1e-5 time: [105.11 µs 105.16 µs 105.23 µs] change: [-0.2235% -0.1070% +0.0226%] (p = 0.09 > 0.05) No change in performance detected. Found 7 outliers among 100 measurements (7.00%) 5 (5.00%) high mild 2 (2.00%) high severe encode 10_000 coordinates at precision 1e-6 time: [123.98 µs 124.32 µs 124.77 µs] change: [-3.0982% -2.4787% -1.8225%] (p = 0.00 < 0.05) Performance has improved. decode 10_000 coordinates at precision 1e-5 time: [86.887 µs 87.835 µs 88.768 µs] change: [+10.484% +11.820% +13.207%] (p = 0.00 < 0.05) Performance has regressed. decode 10_000 coordinates at precision 1e-6 time: [110.52 µs 111.44 µs 112.35 µs] change: [+19.484% +20.773% +22.034%] (p = 0.00 < 0.05) Performance has regressed.
- Loading branch information