[naga] Compaction should not require cloning the entire type arena #6789
Labels
area: naga middle-end
Intermediate representation
area: performance
How fast things go
kind: refactor
Making existing function faster or nicer
naga
Shader Translator
The
Module
compaction code incompact::compact
clones the module's entire type arena just to fix up theExpression
handles of arrays whose sizes are override expressions. This clone really shouldn't be necessary. It should be possible to handle this when we drop unused types from the type arena, earlier in the function.The text was updated successfully, but these errors were encountered: