Skip to content

Optimize ClassLoader metaprogramming - #835

Open
hmcguire-shopify wants to merge 1 commit into
ruby:masterfrom
hmcguire-shopify:hm-kszrtmpurynxltrs
Open

hmcguire-shopify wants to merge 1 commit into
ruby:masterfrom
hmcguire-shopify:hm-kszrtmpurynxltrs

Conversation

@hmcguire-shopify

Copy link
Copy Markdown
  • avoid allocating a string per call by prepending a frozen_string_literal comment
  • avoid nil/empty? checks for known non-nil/non-empty strings by calling find instead of load

- avoid allocating a string per call by prepending a
  `frozen_string_literal` comment
- avoid `nil`/`empty?` checks for known non-nil/non-empty strings by
  calling find instead of load

This branch has not been deployed

No deployments
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.

2 participants