|
[jira] Commented: (BOO-137) optimize for item in array construct: msg#00113lang.boo.devel
[ http://jira.codehaus.org/browse/BOO-137?page=comments#action_47424 ] Cameron Kenneth Knight commented on BOO-137: -------------------------------------------- The above comment refers to the attached file "OptimizeIterationStatements.cs" now the iterators run just as fast as C#'s equivalents, while keeping Boo's shiny syntax. > 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-137) optimize for item in array construct, Cameron Kenneth Knight (JIRA) |
|---|---|
| Next by Date: | [jira] Commented: (BOO-484) For loop similar to Basic's for <var> = <start> to <end> [step <step>]:, Cameron Kenneth Knight (JIRA) |
| Previous by Thread: | [jira] Updated: (BOO-137) optimize for item in array construct, Cameron Kenneth Knight (JIRA) |
| Next by Thread: | [jira] Commented: (BOO-137) optimize for item in array construct, Rodrigo B. de Oliveira (JIRA) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |