Skip to content

Commit

Permalink
Add a document about nightly feature
Browse files Browse the repository at this point in the history
  • Loading branch information
kngwyu committed Jun 19, 2020
1 parent ac922e5 commit e27c4d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions guide/src/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ version = "0.8.1"
extension-module = ["pyo3/extension-module"]
default = ["extension-module"]
```

## `nightly` flag

`pyo3/nightly` feature needs nightly compiler, but enables some optimizations as follows:
- `FromPyObject` for `Vec` and array is optimized when the object can be `PyBuffer`
- `ToBorrowedObject`, used by `PyDict::set_item` or so, is optimized when the taken object is a Python native type.

0 comments on commit e27c4d7

Please sign in to comment.