PyO3/pyo3

Expand performance section of the guide

Offen

#3.310 geöffnet am 11.07.2023

 (8 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)Rust (668 Forks)batch import
Good First Issue

Repository-Metriken

Stars
 (10.152 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 9T 18h) (51 gemergte PRs in 30 T)

Beschreibung

  • Overhead of conversions (i.e. PyList vs Vec etc.)
  • String intern!
  • Vec<u8> becoming list[int] (and thus being very slow), usage of Cow<[u8]> as an alternative
  • #[pyo3(get)] deep-cloning non-Py data
  • dictionary dispatch, i.e. look-up based on type object identity

Contributor Guide