Use crate indexing style trusted indices in `Zip`

Aperta
#566 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Refactoring
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
performance

Direzione di ricerca

Start by reviewing the existing Zip::indexed and apply paths, then read the linked crate-indexing documentation to understand the trusted-index approach. Determine whether Zip's shared-shape guarantee can support this safely and identify benchmarks or tests needed to show that bounds checks are removed without changing behavior.

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

Descrizione

enhancement

I have no idea if this can work, but with Zip we have a closed scope (apply) so we could potentially use crate indexing style trusted indices which don't require bounds checking.

This idea only applies if we are using indexes in Zip (like Zip::indexed), which we often aren't, but it it could be worthwhile to note. All producers in a Zip are checked to have the same shape, so a trusted index is valid for each of them.

Lingua principale
Rust
Stelle
4.3k
Fork
391
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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 rust-ndarray/ndarray

Tutte le issue di rust-ndarray/ndarray

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.