-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Vn from Option<V> to Option<&V>.
Change Fn,R1, & R2 to struct tuple types. impl Debug and PartialEq for fn types manually. see rust-lang/rust#45048 Adjust types to work with now-borrowed values. Reduce clones when available. In general, by borrowing the arguments for all builtin functions, this lets us only clone when creating a new value. This ends up being significant because previously during "table" for example, each "call" applied to the Array values cloned the value when calling the builtin fn. Now it will only clone the value when returning a Vs to the stack.
- Loading branch information
Showing
5 changed files
with
120 additions
and
83 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.