Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Stop LazySpec#method_missing from generating so many objects #1222

Merged
merged 1 commit into from
Jun 3, 2011
Merged

Stop LazySpec#method_missing from generating so many objects #1222

merged 1 commit into from
Jun 3, 2011

Conversation

tenderlove
Copy link
Contributor

LazySpec#method_missing creates a new instance of Gem::Specification, then throws it away on every call. Let's reuse respond_to? and be kinder to our garbage collector.

indirect pushed a commit that referenced this pull request Jun 3, 2011
Stop LazySpec#method_missing from generating so many objects
@indirect indirect merged commit 2235f98 into rubygems:master Jun 3, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants