Skip to content

Commit e27c4d7

Browse files
committed
Add a document about nightly feature
1 parent ac922e5 commit e27c4d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

guide/src/advanced.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ version = "0.8.1"
2828
extension-module = ["pyo3/extension-module"]
2929
default = ["extension-module"]
3030
```
31+
32+
## `nightly` flag
33+
34+
`pyo3/nightly` feature needs nightly compiler, but enables some optimizations as follows:
35+
- `FromPyObject` for `Vec` and array is optimized when the object can be `PyBuffer`
36+
- `ToBorrowedObject`, used by `PyDict::set_item` or so, is optimized when the taken object is a Python native type.

0 commit comments

Comments
 (0)