|
[jira] Created: (BOO-484) For loop similar to Basic's for <var> = <start> t: msg#00046lang.boo.devel
For loop similar to Basic's for <var> = <start> to <end> [step <step>]: ----------------------------------------------------------------------- Key: BOO-484 URL: http://jira.codehaus.org/browse/BOO-484 Project: Boo Type: New Feature Environment: All Reporter: Cameron Kenneth Knight Priority: Minor Boo's current for loop with range is much slower than C#'s simpler for loop If we were to go with Basic's syntax of for <var> = <start> to <end> [step <step>]: <block> Which, would give the same result as for <var> in range(<start>, <end>[, <step>]): <block> but could be made a lot faster. I ran a test where I, in C#, iterated through a for loop 1,000,000,000 times, taking 1.75 seconds. I then ran a test in Boo that iterated through its for loop using range 1,000,000,000 times, taking 47.58 seconds. I don't know if there is another way to make the for-range statement faster, but the way I proposed can cut out the enumerator altogether. -- 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] Created: (BOO-483) Throw error if virtual field, Doug Holton (JIRA) |
|---|---|
| Next by Date: | [jira] Commented: (BOO-484) For loop similar to Basic's for <var> = <start> to <end> [step <step>]:, Daniel Grunwald (JIRA) |
| Previous by Thread: | [jira] Created: (BOO-483) Throw error if virtual field, Doug Holton (JIRA) |
| Next by Thread: | [jira] Commented: (BOO-484) For loop similar to Basic's for <var> = <start> to <end> [step <step>]:, Daniel Grunwald (JIRA) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |