1. 13 May, 2015 1 commit
    • odb: reverse the default backend priorities · b0d7f329
      We currently first look in the loose object dir and then in the packs
      for objects. When performing operations on recent history this has a
      higher likelihood of hitting, but when we deal with operations which
      look further back into the past, we start spending a large amount of
      time getting ENOTENT from `access`.
      
      Reversing the priorities means that long-running operations can get to
      their objects faster, as we can look at the index data we have in memory
      (or rather mapped) to figure out whether we have an object, which is
      faster than going out to the filesystem.
      
      The packed backend already implements an optimistic read algorithm by
      first looking at the packs we know about and only going out to disk to
      referesh if the object is not found which means that in the case where
      we do have the object (which will be in the majority for anything that
      traverses the graph) we can avoid going to to disk entirely to determine
      whether an object exists.
      
      Operations which look at recent history may take a slight impact, but
      these would be operations which look a lot less at object and thus take
      less time regardless.
      Carlos Martín Nieto committed
  2. 12 May, 2015 2 commits
  3. 11 May, 2015 18 commits
  4. 09 May, 2015 1 commit
  5. 07 May, 2015 1 commit
  6. 06 May, 2015 2 commits
  7. 05 May, 2015 2 commits
  8. 04 May, 2015 13 commits