Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
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