Use crate indexing style trusted indices in `Zip`

Abierto
#566 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Refactorización
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
rust
Área
performance

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
4.3k
Forks
391
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rust-ndarray/ndarray

Todos los issues de rust-ndarray/ndarray

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.