PyO3/pyo3

Expand performance section of the guide

Open

#3,310 opened on 2023年7月11日

GitHub で見る
 (8 comments) (4 reactions) (0 assignees)Rust (668 forks)batch import
Good First Issue

Repository metrics

Stars
 (10,152 stars)
PR merge metrics
 (平均マージ 9d 18h) (30d で 51 merged PRs)

説明

  • 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

コントリビューターガイド