Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support re-using allocated Vecs in render functions #5

Open
cramertj opened this issue Jan 11, 2017 · 0 comments
Open

Support re-using allocated Vecs in render functions #5

cramertj opened this issue Jan 11, 2017 · 0 comments

Comments

@cramertj
Copy link
Owner

cramertj commented Jan 11, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant