[Mono-devel-list] Reworked Patch of Timer

S Umadevi sUmadevi at novell.com
Fri Jun 24 04:59:48 EDT 2005


New patch.
1. used a foreach instead of a for.
2. Will not compute the waittime, unless there is a change to the
timers arraylist(Thanks to Hari for pointing this out)

Regards
uma

>>> "Thomas Harning Jr." <harningt at gmail.com> 06/24/05 12:16 PM >>>
S Umadevi wrote:

>> Hey Ben
>> Thanks for your comments.  Find the diff attached..
>>
>> Can this be commited now?
>>
>> Regards
>> uma
>>

Looking over this patch, it looks like there could be some good use
of foreach for looping over things.  It would tighten the code up
readability-wise.
The performance of the foreach loop 'should' be >= the for loop, but
I haven't looked at how Mono optimizes foreach really.

--
Thomas Harning Jr.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: file.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050624/3b747931/attachment.pl 


More information about the Mono-devel-list mailing list