Skip to content
Snippets Groups Projects
  1. Feb 22, 2023
  2. Feb 23, 2023
  3. Feb 22, 2023
  4. Feb 23, 2023
  5. Feb 24, 2023
  6. Feb 23, 2023
    • Arseniy Alekseyev's avatar
      convert: use a priority queue for sorting commits, to make sorting faster · 02fe65f74be5
      Arseniy Alekseyev authored
      To achieve this, we turn commit sorters into classes so they can
      encapsulate state.
      
      This reduces the sorting time from ~30s to ~10s on a 500k-commit
      prefix of a repo I tried to convert. (and probably reduces the time
      to sort the whole repo from many tens of minutes to minutes, but I
      didn't try that again)
      
      The date caching gets removed because priority queue already
      caches the key.
      02fe65f74be5
  7. Feb 21, 2023
    • Matt Harbison's avatar
      typing: add the return type hint to pycompat.rangelist() · 829aa604d71a
      Matt Harbison authored
      Not bothering with the args, because there are a few overloads and only 2
      callers in the codebase, one of which is a test.
      829aa604d71a
    • Matt Harbison's avatar
      typing: add type hints to pycompat.maplist() · 0ab92dabea6e
      Matt Harbison authored
      The typeshed hints define 5 overloads with an increasing number of parameters on
      the passed function, and then a catchall that ignores the argument list on the
      passed function and allows an `*iterators` arg.  All of our uses are fulfilled
      by the 1 function + 1 iterable overload, but add the second overload as a hint
      in case it's needed in the future.
      0ab92dabea6e
  8. Feb 22, 2023
  9. Feb 17, 2023
  10. Feb 16, 2023
  11. Feb 20, 2023
  12. Feb 21, 2023
  13. Feb 19, 2023
  14. Feb 22, 2023
Loading