UV - Caching #51

Closed
opened 2026-07-31 08:58:40 +02:00 by labrec_b · 1 comment
Member

Using cli/pyproject.toml as an example on sls-vserv-bd-hla01-dev, running time uv run --directory cli pytest in /tmp/workspace_svcusr_sls2hla/hla_framework_bd:

UV_CACHE_DIR= /tmp/.cache/uv:

  • No cache and no .venv present:
    • real 17.667s
  • Cache present but no .venv:
    • real 3.235s
  • .venv already built:
    • real 1.102s

UV_CACHE_DIR=/home/svcusr-sls2hla/.cache/uv/:

  • No cache and no .venv present:
    • real 7.798s
  • Cache present but no .venv:
    • real 2.891s
  • .venv already built:
    • real 0.811s

UV_CACHE_DIR=/sls/bd/hla/.cache/uv/:

  • No cache and no .venv present:
    • real 1m29.825s
  • Cache present but no .venv:
    • real 34.776s
  • .venv already built:
    • real 0.990s

UV_CACHE_DIR= /var/cache/uv:

  • No cache and no .venv present:
    • real 8.744s
  • Cache present but no .venv:
    • real 3.503s
  • .venv already built:
    • real 0.933s
Using `cli/pyproject.toml` as an example on `sls-vserv-bd-hla01-dev`, running `time uv run --directory cli pytest` in `/tmp/workspace_svcusr_sls2hla/hla_framework_bd`: `UV_CACHE_DIR= /tmp/.cache/uv`: - No cache and no `.venv` present: - **real 17.667s** - Cache present but no `.venv`: - **real 3.235s** - `.venv` already built: - **real 1.102s** `UV_CACHE_DIR=/home/svcusr-sls2hla/.cache/uv/`: - No cache and no `.venv` present: - **real 7.798s** - Cache present but no `.venv`: - **real 2.891s** - `.venv` already built: - **real 0.811s** `UV_CACHE_DIR=/sls/bd/hla/.cache/uv/`: - No cache and no `.venv` present: - **real 1m29.825s** - Cache present but no `.venv`: - **real 34.776s** - `.venv` already built: - **real 0.990s** `UV_CACHE_DIR= /var/cache/uv`: - No cache and no `.venv` present: - **real 8.744s** - Cache present but no `.venv`: - **real 3.503s** - `.venv` already built: - **real 0.933s**
labrec_b added this to the Benjamin Labrecque project 2026-07-31 08:58:40 +02:00
labrec_b moved this to Selected for Development in Benjamin Labrecque on 2026-07-31 08:58:44 +02:00
labrec_b moved this to In Review in Benjamin Labrecque on 2026-07-31 10:39:20 +02:00
Author
Member

#48

#48
labrec_b moved this to Done in Benjamin Labrecque on 2026-07-31 11:37:45 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sls/hla_framework_bd#51