Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix postfix:<++> to be faster in general, and faster still for Ints.
auto-incrementing 20,000 Ints previously took 13.36s, it now takes 2.76s. In order to get this to work, we also: * Fixed ++/-- to auto-promote to Num/BigInt as needed * Changed !DEREF to check isa using a class object instead of a Key * Refactored all of the autoincrement/decrement operators * Fixed infix:<does> to now work on Integer/Float/String PMCs * Cleaned up .succ and .pred in Bool * Rewrote the .succ and .pred rules for Str in PIR (was C), made it extensible to unicode ranges, and removed no-longer-the-right-place increment/decrement vtable in Perl6Str * Removed the not-quite-working Range.clone method -- we can inherit from Object anyway.
- Loading branch information
Showing
8 changed files
with
193 additions
and
258 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
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.