logo       

[jira] Commented: (BOO-137) optimize for item in array construct: msg#00118

lang.boo.devel

Subject: [jira] Commented: (BOO-137) optimize for item in array construct

[ http://jira.codehaus.org/browse/BOO-137?page=comments#action_47468 ]

Rodrigo B. de Oliveira commented on BOO-137:
--------------------------------------------

Great work!!

> optimize for item in array construct
> ------------------------------------
>
> Key: BOO-137
> URL: http://jira.codehaus.org/browse/BOO-137
> Project: Boo
> Type: Improvement
> Components: Compiler
> Reporter: Rodrigo B. de Oliveira
> Attachments: OptimizeIterationStatements.cs
>
>
> The current progress in the generators front required deoptimizing the
> handling of "for item in array" constructs.
> for item in array:
> pass
> should expand to:
> i = 0
> while i < len(array):
> item = array[i]
> ++i
> instead of today's:
> iterator = array.GetEnumerator()
> while iterator.MoveNext():
> item = iterator.Current

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise