aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tinyxml.rb
diff options
context:
space:
mode:
authorJack Nagel2014-04-02 20:29:20 -0500
committerJack Nagel2014-04-02 20:29:20 -0500
commit3cef191c979622bd938b15353a68394c08fda214 (patch)
tree965b7fe00f9ed1b9d189397c08c51296cc745109 /Library/Formula/tinyxml.rb
parent43a692cb88850dd128f8b1daa3b96aa52c5e0821 (diff)
downloadhomebrew-3cef191c979622bd938b15353a68394c08fda214.tar.bz2
Cache MacOS.version comparison results
MacOS.version#<=> is called many, many times during formula loading with the same half dozen or so arguments. A typical call to this method involves: * a hash lookup to convert a symbol argument to a string * creation of a throw-away Version object wrapping the argument * the actual version comparison, which is not cheap This makes it a prime candidate to be memoized.
Diffstat (limited to 'Library/Formula/tinyxml.rb')
0 files changed, 0 insertions, 0 deletions