Skip to content

Use a Hash for caching things #126

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

Merged
merged 1 commit into from
May 5, 2022
Merged

Use a Hash for caching things #126

merged 1 commit into from
May 5, 2022

Conversation

tenderlove
Copy link
Member

Using ivars will not perform quite as well as a hash, and besides that
if we use a hash we don't need to keep track of the "keys" that were set
in a different data structure (as the hash keeps track of it for us)

Using ivars will not perform quite as well as a hash, and besides that
if we use a hash we don't need to keep track of the "keys" that were set
in a different data structure (as the hash keeps track of it for us)
@tenderlove tenderlove merged commit 949c73e into main May 5, 2022
@tenderlove tenderlove deleted the cache-refactor branch May 5, 2022 15:25
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

Successfully merging this pull request may close these issues.

1 participant