Remove allocation when adding and removing components
Abierto
A - Storage
C - Code Quality
C - Performance
P - Low
- Lenguaje dominante
- Rust
- Estrellas
- 41
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Currently, adding or removing components requires moving the components from one archetype to another, which requires an allocation here: https://github.com/Anders429/brood/blob/master/src/archetype/mod.rs#L461
Since the components are canonically ordered, this can be optimized away. Rather than popping into a buffer, we can just use the component columns from both archetypes, copying directly from the one into the other.
This is somewhat related to #220.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.