aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorJack Nagel2013-04-14 20:09:19 -0500
committerJack Nagel2013-04-14 20:09:20 -0500
commitb258bee44ea3783319ee616168389ed7b9ce5096 (patch)
tree2a248dd0afedf495aeed480b2bf59522a8f5f23d /Library/Homebrew/formula.rb
parent3c73cc28e0bf12d54f344135b35c5af8feaf0a77 (diff)
downloadbrew-b258bee44ea3783319ee616168389ed7b9ce5096.tar.bz2
Don't use Pathname#/ in performance-critical code
This method (well, really, #join) is *twice* as slow as simple concatenation, and shouldn't really be used at all in non-Formula code.
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 420203167..494024278 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -143,7 +143,7 @@ class Formula
end
def prefix
- HOMEBREW_CELLAR/name/version
+ HOMEBREW_CELLAR+name+version
end
def rack; prefix.parent end