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

Consider creating a Principal boa context once for AzleIntoJsValue and AzleTryFromJsValue #363

Closed
Tracked by #80
lastmjs opened this issue May 27, 2022 · 0 comments
Milestone

Comments

@lastmjs
Copy link
Member

lastmjs commented May 27, 2022

Currently in AzleIntoJsValue and AzleTryFromJsValue for the Principal types we create a fresh boa context and execute the @dfinity/principal JS code directly. This might incur high runtime costs for developers. Consider creating one context on init and storing it in global memory, then referencing it in the trait implementations.

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

2 participants