Investigate if `ome-zarr-py` Labels class __init__ leads to performance implications

Aperta
#1,190 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
python
Ambito
performance

Direzione di ricerca

Start with the linked ome_zarr/classes/image.py location and inspect the Labels class init, especially the unique-value computation for the biggest label scale. Compare label-read behavior with and without that computation, then document whether it causes a slowdown and add regression coverage if the project provides a suitable test location.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

performance 🚀

I noticed that the constructor of the Labels class in the recent ome-zarr-py release calls a function that computes unique values for the biggest scale of labels: https://github.com/ome/ome-zarr-py/blob/025e83da618ec9e74f4b41f05814fce07b029356/ome_zarr/classes/image.py#L1140

I haven't done regression tests on this, but let's keep an eye and see if this means that we are getting a slowdown upon read.

CC @ajkswamy @Tomaz-Vieira @melonora

Lingua principale
Python
Stelle
394
Fork
95
Merge medio
3g 9h
PR unite (30g)
5

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di scverse/spatialdata

Tutte le issue di scverse/spatialdata

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.