Skip to content
Snippets Groups Projects
  1. Nov 24, 2010
    • Ryan Tomayko's avatar
      typo · 034fc819
      Ryan Tomayko authored
    • Ryan Tomayko's avatar
      fix relative alternates paths · 7fc2b567
      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.
      7fc2b567
  2. Nov 23, 2010
  3. Nov 01, 2010
  4. Oct 28, 2010
  5. Oct 22, 2010
  6. Oct 21, 2010
  7. Oct 16, 2010
    • Ryan Tomayko's avatar
    • Ryan Tomayko's avatar
      Git#sh uses 8K buffers instead of 1K · 8f574aa6
      Ryan Tomayko authored
      8f574aa6
    • Ryan Tomayko's avatar
      use String#<< instead of String#+ in Git#sh and Git#wild_sh · 10892003
      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>
      10892003
  8. Oct 11, 2010
  9. Oct 08, 2010
  10. Sep 29, 2010
  11. Aug 31, 2010
  12. Aug 23, 2010
  13. Aug 20, 2010
  14. Aug 12, 2010
  15. Aug 05, 2010
  16. Aug 04, 2010
Loading