PyO3/pyo3

Expand performance section of the guide

Ouverte

#3 310 ouverte le 11 juil. 2023

 (8 commentaires) (4 réactions) (0 personne assignée)Rust (668 forks)batch import
Good First Issue

Métriques du dépôt

Stars
 (10 152 étoiles)
Métriques de merge PR
 (Merge moyen 9j 18h) (51 PRs mergées en 30 j)

Description

  • 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

Guide contributeur