1. 03 Nov, 2022 2 commits
    • feat: cache simple repository pages (#6932) · 0dc3d54f
      At #5868, I
      [suggested](https://github.com/python-poetry/poetry/pull/5868#discussion_r931507885)
      that some of the caching that was being reworked could be removed
      altogether, because cachecontrol was already taking care of it just
      fine.
      
      But now I find myself using an Azure artifacts repository, and it is
      returning headers that insist that the client does not do any caching:
      ```
      cache-control: no-cache
      pragma: no-cache           
      x-cache: CONFIG_NOCACHE 
      ```
      (pypi, by contrast, sets max-age to 10 minutes here).
      
      So I was wrong! And now I am seeing a big performance hit in some
      projects where the solve involves overrides and backtracking: and
      therefore hitting the legacy simple API repeatedly.
      
      However, we don't need all the mechanism of cachy and its like for this,
      a well-placed `@lru_cache()` seems more than sufficient.
      
      This makes me wonder whether it wouldn't be better to do similar for
      pypi anyway, and rip out cachecontrol altogether. But let's keep it
      simple for now: this is an easy fix to a performance regression.
      David Hotham committed
    • fix: match requests pool_maxsize to num workers (#6805) · 4896c4bd
      This avoids trashing connections just to immediately re-create them when
      `num-worker` > 10. This should provide a pretty solid speedup on beefy
      machines.
      
      I'm not attaching any tests because this would be hard to test and if it
      doesn't crash with an unknown keyword argument or something it means
      it's probably going to be doing what we expect.
      Adrian Garcia Badaracco committed
  2. 01 Nov, 2022 1 commit
  3. 31 Oct, 2022 6 commits
  4. 30 Oct, 2022 3 commits
  5. 29 Oct, 2022 1 commit
  6. 26 Oct, 2022 1 commit
  7. 24 Oct, 2022 4 commits
  8. 13 Oct, 2022 1 commit
  9. 12 Oct, 2022 2 commits
  10. 11 Oct, 2022 7 commits
  11. 10 Oct, 2022 8 commits
  12. 07 Oct, 2022 4 commits