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

Refreshable.map operates on the read-side so is less efficient than it could be #40

Open
bastewart opened this issue Mar 29, 2023 · 0 comments

Comments

@bastewart
Copy link

As in the title, the implementation of Refreshable.map means that every read of the cache involves a transformation of the data structure. We should probably consider implementing this instead through caching the value post-transformation (or adding new method to do this). This could/would cost more memory, but is probably worth it!

Not urgent at all though, I can just do the map on my side pre-caching.

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