<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/rubygems/win_platform.rb, branch v4.0.4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[rubygems/rubygems] Pull `Gem.win_platform?` out of a hot path</title>
<updated>2025-09-19T10:30:10+00:00</updated>
<author>
<name>Aaron Patterson</name>
<email>tenderlove@ruby-lang.org</email>
</author>
<published>2025-09-17T09:10:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3bf695a767b0f03e39a93e27296499eca1bec64f'/>
<id>3bf695a767b0f03e39a93e27296499eca1bec64f</id>
<content type='text'>
`normalize_path` is a pretty hot path, it's called many times per file
in each gem. Since the platform isn't going to change from call to call,
we can conditionally define `normalize_path` based on the value of
`Gem.win_platform?`.

https://github.com/rubygems/rubygems/commit/d5e61411f2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`normalize_path` is a pretty hot path, it's called many times per file
in each gem. Since the platform isn't going to change from call to call,
we can conditionally define `normalize_path` based on the value of
`Gem.win_platform?`.

https://github.com/rubygems/rubygems/commit/d5e61411f2
</pre>
</div>
</content>
</entry>
</feed>
