You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, render functions that include dynamically allocated types (primarily Vecs) need to re-allocate each time. It'd be nice to have some sort of pooling support. One possibility would be to have Renderer::render take some kind of AnyMap that could store "emptiable" allocated types and re-use them each time. However, this would require that the DomNode returned from render contain a reference to the entry in the AnyMap, so I don't think this is possible without a solution to #1.
The text was updated successfully, but these errors were encountered:
Currently,
render
functions that include dynamically allocated types (primarilyVec
s) need to re-allocate each time. It'd be nice to have some sort of pooling support. One possibility would be to haveRenderer::render
take some kind ofAnyMap
that could store "emptiable" allocated types and re-use them each time. However, this would require that theDomNode
returned fromrender
contain a reference to the entry in theAnyMap
, so I don't think this is possible without a solution to #1.The text was updated successfully, but these errors were encountered: