logo       

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

lang.boo.devel

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

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

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

Please make sure that all tests currently in the repository pass (I've just
added some test cases regarding range runtime behavior).

Another thing, all the files in the boo code base must have the following
header:

http://svn.boo.codehaus.org/boo/trunk/notice.txt?rev=1775&view=auto



> 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