Skip to content

Commit

Permalink
[rubygems/rubygems] Avoid calling String#dup in Gem::Version#marshal_…
Browse files Browse the repository at this point in the history
…dump

Might potentially save a second every time RubyGems.org creates a specs index

rubygems/rubygems@d6e4d50f8d
  • Loading branch information
segiddins authored and matzbot committed Mar 7, 2023
1 parent dc33d32 commit 638f68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/version.rb
Expand Up @@ -272,7 +272,7 @@ def inspect # :nodoc:
# string for backwards (RubyGems 1.3.5 and earlier) compatibility.

def marshal_dump
[version]
[@version]
end

##
Expand Down

0 comments on commit 638f68b

Please sign in to comment.