Skip to content
Snippets Groups Projects
  1. Sep 23, 2022
    • Pierre-Yves David's avatar
      from_disk: only build a model object once · 814a6c84
      Pierre-Yves David authored
      Before this change, a Directory object was built to compute the `id` of
      we fed to the Directory object we built for `to_model`.
      
      We tested this change on simple information of the Mercurial loader,
      with a noop-loader stockage:
      
          swh loader run mercurial https://foss.heptapod.net/mercurial/mercurial-devel directory=/data/repos/mercurial-devel
      
      = Median time of 3 run =
      before: 17 minutes 48 seconds
      after:  12 minutes 59 seconds
      
      On a profile of the same run, the `to_model` call of the from_disk's `Directory` class took the following percentage:
      before: 43%
      after:  24%
      814a6c84
  2. Aug 30, 2022
  3. Aug 08, 2022
  4. Aug 04, 2022
  5. Jul 19, 2022
  6. Jul 11, 2022
  7. Jul 06, 2022
    • vlorentz's avatar
      model: Add Directory.from_possibly_duplicated_entries factory · 0f7a1cbe
      vlorentz authored
      It will be used by swh.storage.backfiller (so indirectly, swh.scrubber)
      to load directories from the postgresql database, whose schema accidentally
      allowed directories with duplicate entries -- without corrupting the
      shape of the directory too much.
      0f7a1cbe
  8. Jul 04, 2022
  9. May 09, 2022
  10. May 01, 2022
  11. Apr 27, 2022
  12. Apr 26, 2022
  13. Apr 21, 2022
  14. Apr 11, 2022
  15. Apr 08, 2022
  16. Mar 31, 2022
  17. Mar 30, 2022
  18. Mar 23, 2022
  19. Mar 22, 2022
    • Antoine Lambert's avatar
      pytest: Exclude build directory for tests discovery · f6ad1ed1
      Antoine Lambert authored
      Due to test modules being copied in subdirectories of the
      build directory by setuptools, it makes pytest fail by raising
      ImportPathMismatchError exceptions when invoked from root
      directory of the module.
      
      So ignore the build folder to discover tests.
      f6ad1ed1
  20. Mar 18, 2022
  21. Mar 16, 2022
  22. Feb 10, 2022
  23. Jan 26, 2022
  24. Jan 21, 2022
  25. Jan 17, 2022
Loading