georust / rstar

R*-tree spatial index for the Rust ecosystem
https://docs.rs/rstar
Apache License 2.0
384 stars 67 forks source link

Add cached envelope benchmark #137

Closed urschrei closed 9 months ago

urschrei commented 9 months ago
adamreichold commented 9 months ago

Not really part of the change but since we are touching this file:

urschrei commented 9 months ago

@adamreichold like this?

adamreichold commented 9 months ago

@adamreichold like this?

Almost. The new bulk_load_complex_geom_cached benchmark still collects and then maps instead immediately doing something like

let cached: Vec<_> =
    create_random_polygons(DEFAULT_BENCHMARK_TREE_SIZE, 4096, SEED_1)
        .map(CachedEnvelope::new)
        .collect();