Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace .Bool calls with nqp::p6bool() in Bool.pm (other areas of the compiler still use the method call, which could be changed too) Using `my $x = …; {for ^3000_000 {my $ = ?$x}; say now - ENTER now}` Makes: - with Num; 9x faster - with `class {}.new`; 11% faster - with `class { method Bool { False } }.new` or `but False` of core types; 4.6x SLOWER - with an unmixed Int or Str, no change
- Loading branch information
1 parent
fc643a2
commit 4a31d0d
Showing
1 changed file
with
10 additions
and
8 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