Anders429 / Anders429/brood

Remove allocation when adding and removing components

Abierto
#224 0 comentarios 0 reacciones 0 asignados Ver en GitHub
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.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.