PyO3/pyo3

Expand performance section of the guide

開放

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

 (9 則留言) (4 個反應) (0 位負責人)Rust (668 個分叉)batch import
Good First Issue

倉庫指標

星標
 (10,152 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

  • 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

貢獻者指南