Add a document about nightly feature

This commit is contained in:
kngwyu 2020-06-19 14:50:48 +09:00
parent ac922e5756
commit e27c4d75c9
1 changed files with 6 additions and 0 deletions

View File

@ -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.