Commit 7cd02c1
Add rendering performance example notebook
Port the `speed_up_illustration` notebook from spatialdata-notebooks into the
gallery as examples/performance.ipynb, adapted to repo conventions:
- Uses the cached `squidpy` visium_hne_sdata loader (its multiscale `hne`
image drives the image sections) instead of a manually-downloaded zarr.
- Sections: automatic rasterization (single-scale images), automatic scale
selection (multi-scale images), and the datashader backend for shapes/points.
- Slims the synthetic-data helper to build only the benchmarked element, and
adds an untimed warmup so numba JIT / datashader setup isn't measured.
- Keeps the shape crossovers (~250 polygons/circles, ~225 multi-polygons) and
shows that points are comparable across backends (no clean crossover).
Points benchmark starts at n=10: a single point has zero extent and crashes
the datashader backend (scverse/spatialdata-plot#724).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7af5200 commit 7cd02c1
3 files changed
Lines changed: 947 additions & 0 deletions
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
26 | 35 | | |
27 | 36 | | |
28 | 37 | | |
| |||
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
| 43 | + | |
34 | 44 | | |
Large diffs are not rendered by default.
0 commit comments