- Nov 24, 2010
-
-
Ryan Tomayko authored
Relative paths in a <repo>.git/objects/info/alternates file are to be expanded relative to the <repo>.git/objects directory. Previously, they were expanded relative to the <repo>.git directory. The current code checks in both locations for backward compatibility with grit <= 2.3.0 but I'd rather rip it out completely.
- Nov 23, 2010
-
-
Ryan Tomayko authored
-
- Nov 01, 2010
-
-
rick authored
-
- Oct 28, 2010
- Oct 22, 2010
- Oct 21, 2010
-
-
rick authored
-
- Oct 16, 2010
-
-
Ryan Tomayko authored
-
Ryan Tomayko authored
-
Ryan Tomayko authored
This speeds things up considerably when output is large. Especially so under some versions of Rails (AS) where String#+ is made to be extremely slow. With 500K blob, before: $ ruby bench-string-concat.rb 12044a76034e894c2412aea9c20508b5c8277784 blob: 12044a76034e894c2412aea9c20508b5c8277784 size: 499855 user system total real native cat_file 11.030000 9.140000 20.230000 ( 21.182163) ruby cat_file 0.040000 0.020000 0.060000 ( 0.061033) ActiveSupport makes it even worse: $ ruby -ractive_support bench-string-concat.rb 12044a76034e894c2412aea9c20508b5c8277784 blob: 12044a76034e894c2412aea9c20508b5c8277784 size: 499855 user system total real native cat_file 15.830000 9.570000 25.470000 ( 26.286903) ruby cat_file 0.050000 0.020000 0.070000 ( 0.073557) With this commit applied (using String#<< instead of String#+): $ ruby bench-string-concat.rb 12044a76034e894c2412aea9c20508b5c8277784 blob: 12044a76034e894c2412aea9c20508b5c8277784 size: 499855 user system total real native cat_file 0.310000 0.440000 0.800000 ( 1.765703) ruby cat_file 0.040000 0.020000 0.060000 ( 0.064426) The bench-string-concat.rb script is here: <https://gist.github.com/e749138b066ed9d81fbe>
-
- Oct 11, 2010
- Oct 08, 2010
- Sep 29, 2010
-
- Aug 31, 2010
-
-
Tom Preston-Werner authored
-
Tom Preston-Werner authored
-
Tom Preston-Werner authored
-
Chris Hoffman authored
* Add current directory to path for tests because 1.9 does not * Explicity open file in binary mode to get around encoding issues
-
Tom Preston-Werner authored
-
Joshua Priddle authored
-
- Aug 23, 2010
- Aug 20, 2010
-
-
Tom Preston-Werner authored
-
Tom Preston-Werner authored
-
- Aug 12, 2010
-
-
gram.gibson@gmail.com authored
-
- Aug 05, 2010
-
-
Tom Preston-Werner authored
-
- Aug 04, 2010
-
-
Tom Preston-Werner authored
-
rick authored
-
Igor Wiedler authored
-