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

Investigate the possibility of caching IonElement instances #87

Open
popematt opened this issue Mar 11, 2024 · 0 comments
Open

Investigate the possibility of caching IonElement instances #87

popematt opened this issue Mar 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@popematt
Copy link
Contributor

If someone is reading data with a lot of repeated values, we might be able to avoid allocating many duplicate objects if we can maintain a cache of frequently used values.

This is likely a very difficult problem for Ion 1.0. However, using Ion 1.1 we could create caches for particular macro invocations. It would be especially beneficial for macros that accept few arguments and produce a large result.

If the user is loading their data with any metas information, caching is probably infeasible because even if we encounter the same value, its metadata (e.g. location) could be different.

@popematt popematt added the enhancement New feature or request label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant