uv/crates
konsti 71964ec7a8
Switch to msgpack in the cached client (#662)
This gives a 1.23 speedup on transformers-extras. We could change to
msgpack for the entire cache if we want. I only tried this format and
postcard so far, where postcard was much slower (like 1.6s).

I don't actually want to merge it like this, i wanted to figure out the
ballpark of improvement for switching away from json.

```
hyperfine --warmup 3 --runs 10 "target/profiling/puffin pip-compile --cache-dir cache-msgpack scripts/requirements/transformers-extras.in" "target/profiling/branch pip-compile scripts/requirements/transformers-extras.in"
Benchmark 1: target/profiling/puffin pip-compile --cache-dir cache-msgpack scripts/requirements/transformers-extras.in
  Time (mean ± σ):     179.1 ms ±   4.8 ms    [User: 157.5 ms, System: 48.1 ms]
  Range (min … max):   174.9 ms … 188.1 ms    10 runs

Benchmark 2: target/profiling/branch pip-compile scripts/requirements/transformers-extras.in
  Time (mean ± σ):     221.1 ms ±   6.7 ms    [User: 208.1 ms, System: 46.5 ms]
  Range (min … max):   213.5 ms … 235.5 ms    10 runs

Summary
  target/profiling/puffin pip-compile --cache-dir cache-msgpack scripts/requirements/transformers-extras.in ran
    1.23 ± 0.05 times faster than target/profiling/branch pip-compile scripts/requirements/transformers-extras.in
```

Disadvantage: We can't manually look into the cache anymore to debug
things

- [ ] Check more formats, i currently only tested json, msgpack and
postcard, there should be other formats, too
- [x] Switch over `CachedByTimestamp` serialization (for the interpreter
caching)
- [x] Switch over error handling and make sure puffin is still resilient
to cache failure
2023-12-16 21:01:35 +00:00
..
bench Use Clippy lint table over Cargo config (#490) 2023-11-22 15:10:27 +00:00
distribution-filename Impl Version debug as display (#606) 2023-12-11 16:38:14 +01:00
distribution-types Avoid double resolution during source builds (#656) 2023-12-15 17:27:16 +00:00
gourgeist Activate venv before source dist build (#567) 2023-12-12 15:46:37 +01:00
install-wheel-rs Use rustc-hash instead of fxhash crate (#594) 2023-12-08 20:27:49 +00:00
pep440-rs Speed up version parsing for a 1.27±0.03 speedup in transformers-extras with conservative changes (#660) 2023-12-15 14:03:35 -05:00
pep508-rs Modify PEP 508 cursor to use byte offsets (#668) 2023-12-15 22:05:28 +00:00
platform-host Error when ldd is not in path (#506) 2023-11-28 05:55:04 +00:00
platform-tags Use rustc-hash instead of fxhash crate (#594) 2023-12-08 20:27:49 +00:00
puffin-build Avoid double resolution during source builds (#656) 2023-12-15 17:27:16 +00:00
puffin-cache Switch to msgpack in the cached client (#662) 2023-12-16 21:01:35 +00:00
puffin-cli Speed up version parsing for a 1.27±0.03 speedup in transformers-extras with conservative changes (#660) 2023-12-15 14:03:35 -05:00
puffin-client Switch to msgpack in the cached client (#662) 2023-12-16 21:01:35 +00:00
puffin-dev Preserve verbatim URLs (#639) 2023-12-14 15:03:39 +00:00
puffin-dispatch Avoid double resolution during source builds (#656) 2023-12-15 17:27:16 +00:00
puffin-distribution Switch to msgpack in the cached client (#662) 2023-12-16 21:01:35 +00:00
puffin-extract Move source dist extraction into extract crate (#649) 2023-12-14 05:56:49 +00:00
puffin-fs Enable selective cache purging in puffin clean (#589) 2023-12-08 19:51:32 +00:00
puffin-git Restructure Git cache to include package name (#588) 2023-12-07 20:17:41 -05:00
puffin-installer Preserve verbatim URLs (#639) 2023-12-14 15:03:39 +00:00
puffin-interpreter Switch to msgpack in the cached client (#662) 2023-12-16 21:01:35 +00:00
puffin-normalize Add dedicated ID types to avoid opaque strings (#642) 2023-12-14 00:53:33 +00:00
puffin-resolver Avoid double resolution during source builds (#656) 2023-12-15 17:27:16 +00:00
puffin-traits Avoid double resolution during source builds (#656) 2023-12-15 17:27:16 +00:00
puffin-warnings Make warnings user-facing (#628) 2023-12-12 21:24:38 -05:00
puffin-workspace Use Clippy lint table over Cargo config (#490) 2023-11-22 15:10:27 +00:00
pypi-types Add fixup for invalid double quotes (#663) 2023-12-15 18:11:22 +00:00
requirements-txt Preserve verbatim URLs (#639) 2023-12-14 15:03:39 +00:00
README.md Move archive extraction into its own crate (#647) 2023-12-14 04:49:09 +00:00

Crates

bench

Functionality for benchmarking Puffin.

distribution-filename

Parse built distribution (wheel) and source distribution (sdist) filenames to extract structured metadata.

distribution-types

Abstractions for representing built distributions (wheels) and source distributions (sdists), and the sources from which they can be downloaded.

gourgeist

A venv replacement to create virtual environments in Rust.

install-wheel-rs

Install built distributions (wheels) into a virtual environment.]

pep440-rs

Utilities for interacting with Python version numbers and specifiers.

pep508-rs

Utilities for interacting with PEP 508 dependency specifiers.

platform-host

Functionality for detecting the current platform (operating system, architecture, etc.).

platform-tags

Functionality for parsing and inferring Python platform tags as per PEP 425.

puffin-build

A PEP 517-compatible build frontend for Puffin.

puffin-cache

Functionality for caching Python packages and associated metadata.

puffin-cli

Command-line interface for the Puffin package manager.

puffin-client

Client for interacting with PyPI-compatible HTTP APIs.

puffin-dev

Development utilities for Puffin.

puffin-dispatch

A centralized struct for resolving and building source distributions in isolated environments. Implements the traits defined in puffin-traits.

puffin-distribution

Client for interacting with built distributions (wheels) and source distributions (sdists). Capable of fetching metadata, distribution contents, etc.

puffin-extract

Utilities for extracting files from archives.

puffin-fs

Utilities for interacting with the filesystem.

puffin-git

Functionality for interacting with Git repositories.

puffin-installer

Functionality for installing Python packages into a virtual environment.

puffin-interpreter

Functionality for detecting and leveraging the current Python interpreter.

puffin-normalize

Normalize package and extra names as per Python specifications.

puffin-package

Types and functionality for working with Python packages, e.g., parsing wheel files.

puffin-resolver

Functionality for resolving Python packages and their dependencies.

puffin-traits

Shared traits for Puffin, to avoid circular dependencies.

pypi-types

General-purpose type definitions for types used in PyPI-compatible APIs.

puffin-warnings

User-facing warnings for Puffin.

requirements-txt

Functionality for parsing requirements.txt files.