logoalt Hacker News

Optimizing Ruby Path Methods

42 pointsby weaksauceyesterday at 8:42 PM15 commentsview on HN

Comments

somewhatrandom9today at 12:15 AM

byroot sets a great example sharing his code optimization expertise. His blog has many great improvements like this. A 7x improvement in Dir.join and similar calls?! Thank you, byroot!

vidarhyesterday at 10:12 PM

> More importantly, on CI systems it’s relatively common to check out code using git, and git doesn’t care about mtime

git doesn't care about mtime, but git maintains trees whose hash changes if any constituent part of the tree changes. It'd seem tempting to check for a .git and if present use the git tree to determine whether to invalidate the cache.

show 1 reply
nixpulvisyesterday at 9:58 PM

Would this be possible to mainline into ruby in some way?

show 1 reply
blinkbatyesterday at 9:58 PM

don't take this the wrong way, but -- people still use ruby?

show 9 replies