forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port
Field
to Rust (pantsbuild#19143)
This change ports `Field` to Rust. One important takeaway was that `pyo3` gives us less of an advantage when subclassing is in use, because most methods of the class need to accept themselves as `PyCell` or `PyRef` (in order to gain access to their subclass instance, which isn't a member of the wrapped struct). Those methods can then only be _called_ via `pyo3` as well. Despite that, I'll likely still port `Target` to Rust for consistency, and because it has some longer methods which I expect to see actual performance benefit from porting.
- Loading branch information
Showing
9 changed files
with
387 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.