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

Speed up rubygem's Kernel.require #1060

Merged
merged 4 commits into from Nov 30, 2014
Merged

Speed up rubygem's Kernel.require #1060

merged 4 commits into from Nov 30, 2014

Conversation

unak
Copy link
Contributor

@unak unak commented Nov 14, 2014

This is the implementation of some ideas for the speed.
Without changing the existing algorithm, it realized the speed mainly by taking advantage of the cache.

In case of executing Kernel.require about 60 gems that in my test environment, approximately 25% of the speed has been achieved by these changes.

this reduces about 10% total time of Kernel.require on my test environment.
this reduces about 10% total time of Kernel.require on my test environment.
…ble.

calling the original Kernel.require with a full path is about 25% faster than with path-less paramter.
this reduces about 5% total time of rubygem's Kernel.require on my test environment.
@drbrain drbrain added this to the 2.5 milestone Nov 30, 2014
drbrain added a commit that referenced this pull request Nov 30, 2014
Speed up rubygem's Kernel.require
@drbrain drbrain merged commit 0f01103 into master Nov 30, 2014
drbrain added a commit that referenced this pull request Nov 30, 2014
@drbrain drbrain deleted the speedup branch November 30, 2014 04:20
drbrain added a commit that referenced this pull request Nov 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants