Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert INTERPOLATE into multis #1192

Merged
merged 6 commits into from Oct 14, 2017

Conversation

MasterDuke17
Copy link
Contributor

For a 10k line file, ./perl6-m -e 'my @l = "sm.sql".IO.lines; my $s = "Perl6"; my $t = now; my @m = @l.grep(/ $s /); say @m.elems; say now - $t' used to take ~5.5s, now it takes ~3.4s. The other forms have minor to no speedup.

Rakudo builds ok and passes make m-test m-spectest.

These required minimal code changes to the original method.
And remove that funcitonality from the main Mu:D multi.
There was one too many parameters to intern the callsite, so the method
dispatch wasn't getting cached, so the initial conversion to multis
ended up making it 3x slower.
INTERPOLATE multis is required to compile on JVM and JS, but doesn't
actually work.
@lizmat lizmat merged commit d561517 into rakudo:nom Oct 14, 2017
@lizmat
Copy link
Contributor

lizmat commented Oct 14, 2017

Thanks!

@MasterDuke17 MasterDuke17 deleted the convert_INTERPOLATE_into_a_multi branch October 14, 2017 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants