|
[jira] Updated: (BOO-137) optimize for item in array construct: msg#00112lang.boo.devel
[ http://jira.codehaus.org/browse/BOO-137?page=all ] Cameron Kenneth Knight updated BOO-137: --------------------------------------- Attachment: OptimizeIterationStatements.cs This optimizes "for i in array" as well as "for i in range()" It goes into the pipeline "ResolveExpressions" after ProcessMethodBodiesWithDuckTyping. > 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> |
|---|---|---|
| Previous by Date: | [jira] Updated: (BOO-499) Improved CollectionAttribute, Arron Washington (JIRA) |
|---|---|
| Next by Date: | [jira] Commented: (BOO-137) optimize for item in array construct, Cameron Kenneth Knight (JIRA) |
| Previous by Thread: | [jira] Created: (BOO-499) Improved CollectionAttribute, Arron Washington (JIRA) |
| Next by Thread: | [jira] Updated: (BOO-137) optimize for item in array construct, Cameron Kenneth Knight (JIRA) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |