PyO3/pyo3

Expand performance section of the guide

Open

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

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

説明

  • 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

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

Expand performance section of the guide · PyO3/pyo3#3310 | Good First Issue