1. 11 7月, 2015 7 次提交
  2. 10 7月, 2015 2 次提交
  3. 07 7月, 2015 1 次提交
  4. 05 7月, 2015 1 次提交
    • J
      index-pack: fix allocation of sorted_by_pos array · 781d9306
      Junio C Hamano 提交于
      When c6458e60 (index-pack: kill union delta_base to save memory,
      2015-04-18) attempted to reduce the memory footprint of index-pack,
      one of the key thing it did was to keep track of ref-deltas and
      ofs-deltas separately.
      
      In fix_unresolved_deltas(), however it forgot that it now wants to
      look only at ref deltas in one place.  The code allocated an array
      for nr_unresolved, which is sum of number of ref- and ofs-deltas
      minus nr_resolved, which may be larger or smaller than the number
      ref-deltas.  Depending on nr_resolved, this was either under or over
      allocating.
      
      Also, the old code before this change had to use 'i' and 'n' because
      some of the things we see in the (old) deltas[] array we scanned
      with 'i' would not make it into the sorted_by_pos[] array in the old
      world order, but now because you have only ref delta in a separate
      ref_deltas[] array, they increment lock&step.  We no longer need
      separate variables.  And most importantly, we shouldn't pass the
      nr_unresolved parameter, as this number does not play a role in the
      working of this helper function.
      Helped-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      781d9306
  5. 02 7月, 2015 7 次提交
  6. 29 6月, 2015 1 次提交
  7. 27 6月, 2015 1 次提交
  8. 26 6月, 2015 17 次提交
  9. 25 6月, 2015 3 次提交