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

Cache activation factories #34

Open
Boddlnagg opened this issue Feb 27, 2017 · 2 comments
Open

Cache activation factories #34

Boddlnagg opened this issue Feb 27, 2017 · 2 comments

Comments

@Boddlnagg
Copy link
Collaborator

Boddlnagg commented Feb 27, 2017

We currently call RoGetActivationFactory() on every single (wrapped) constructor or static function call.

This should be optimized by caching activation factories. An explanation of what's done in the modern C++ projection is given in https://kennykerr.ca/2016/11/24/cppwinrt-optimizing-activation/

@Boddlnagg
Copy link
Collaborator Author

We should then also do some benchmarks similar to the ones shown here: https://blogs.windows.com/buildingapps/2016/11/28/standard-c-windows-runtime-cwinrt/

@Boddlnagg
Copy link
Collaborator Author

See also the factory_cache type in base.h in C++/WinRT

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