Skip to content
Snippets Groups Projects
  1. Jun 26, 2023
  2. Jun 22, 2023
  3. Jun 21, 2023
  4. Jun 19, 2023
  5. May 23, 2023
  6. Jun 01, 2023
  7. Jun 20, 2023
  8. Jun 19, 2023
  9. Jun 17, 2023
  10. Apr 20, 2023
  11. Apr 17, 2023
  12. Jun 12, 2023
    • Raphaël Gomès's avatar
      match: add `filepath:` pattern to match an exact filepath relative to the root · 1c31b343
      Raphaël Gomès authored
      It's useful in certain automated workflows to make sure we recurse in
      directories whose name conflicts with files in other revisions.
      
      In addition it makes it possible to avoid building a potentially costly regex,
      improving performance when the set of files to match explicitly is large.
      
      The benchmark below are run in the following configuration :
       # data-env-vars.name             = mozilla-central-2018-08-01-zstd-sparse-revlog
       # benchmark.name                 = files
       # benchmark.variants.rev         = tip
       # benchmark.variants.files       = all-list-filepath-sorted
       # bin-env-vars.hg.flavor         = no-rust
      
      It also includes timings using the re2 engine (through the `google-re2` module)
      to show how much can be saved by just using a better regexp engine.
      
      
      Pattern                time (seconds)        time using re2
      -----------------------------------------------------------
      just "."                0.4                    0.4
      list of "filepath:…"    1.3                    1.3
      list of "path:…"       25.7                    3.9
      list of patterns       29.7                   10.4
      
      As you can see, Without re2, using "filepath:" instead of "path:" is a huge
      win. With re2, it is still about three times faster to not have to build the
      regex.
      1c31b343
  13. Jun 17, 2023
  14. Jun 15, 2023
  15. Jun 09, 2023
  16. Jun 17, 2023
  17. Jun 20, 2023
    • Pierre-Yves David's avatar
      backout: remove db9b6ce803a9 · b9a35576
      Pierre-Yves David authored
      That changeset lost its topic for unknown reason and ended up being picked by
      some automation. So I backout it previous incarnation until it can get properly
      reviewed.
      b9a35576
  18. Jun 19, 2023
  19. Jun 17, 2023
Loading