-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
inlining with @:generic #3663
Labels
Comments
The problem is that we do iterator inlining at the time of typing it. Generic expansion on the other hand works by "copying" the typed expressions, so there is no re-typing involved. It might be possible to move the iterator inlining to a later optimization stage, but that is going to require some work. |
This was referenced Nov 19, 2015
This now generates good code: Main.each_Int_IntIterator = function(itr,f) {
var _g = itr;
while(_g.min < _g.max) {
var x = _g.min++;
f(x);
}
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code (the same as #3639)
This code generates specialized method Test.each_Int_IntIterator, but method calls in it have not been inlined:
Is it able to apply inlining to these method calls?
The text was updated successfully, but these errors were encountered: