PyO3/pyo3

Expand performance section of the guide

Open

#3,310 建立於 2023年7月11日

在 GitHub 查看
 (8 留言) (4 反應) (0 負責人)Rust (10,152 star) (668 fork)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

貢獻者指南