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

README mentions object-shape optimization #45

Merged
merged 2 commits into from
Apr 6, 2024

Conversation

nevinera
Copy link
Contributor

Update the README to mention the object-shape optimization - explain (a) that Memery uses a single instance variable, (b) link to a few resources about the topic, (c) give a workaround for extremely concerned citizens to avoid any object-shape branching with.

Replaces #44 and probably fixes #43

(mostly explaining what to read and not to worry about it, but also how
to call clear_memery_cache! to set up the ivar in the initializer)
@tycooon tycooon merged commit 5e369a9 into tycooon:master Apr 6, 2024
6 checks passed
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.

Support (opt-in?) pattern that complies with recent ruby object shape performance optimization?
2 participants