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

Improved ActiveSupport::Autoload Performance #5387

Merged
merged 1 commit into from Mar 12, 2012

Conversation

panthomakos
Copy link
Contributor

ActiveSupport::Autoload#autoload performance is improved in the default case where a path is present. Since the full path name is not generated, it isn't necessary to determine the full constant name either. This results in a 3x performance gain and reduces the number of Ruby objects generated. For a full benchmark check this gist.

`ActiveSupport::Autoload#autoload` performance is improved in the default
case where a path is present. Since the full path name is not generated, it
isn't necessary to determine the full constant name either. This results in a
3x performance gain and reduces the number of Ruby objects generated. For a full
benchmark check [this gist](https://gist.github.com/2020228).
@vijaydev
Copy link
Member

cc: @fxn

josevalim added a commit that referenced this pull request Mar 12, 2012
Improved ActiveSupport::Autoload Performance
@josevalim josevalim merged commit 0533ee4 into rails:master Mar 12, 2012
@jeremy
Copy link
Member

jeremy commented Mar 12, 2012

Nice patch, @panthomakos 👌

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.

None yet

4 participants