[Mono-devel-list] [PATCH] Increase the speed of StreamReader.ReadLine ()

Ben Maurer bmaurer at users.sourceforge.net
Sat Dec 20 14:12:28 EST 2003


I found a global perf boost we can give to StreamReader.ReadLine. In
short, the attached patch will reduce the allocation of StringBuilders.
In some cases, it will make the method nearly twice as fast.

I would love to hear comments.

-- Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stream-reader-readline-speedup.patch
Type: text/x-patch
Size: 4044 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20031220/ec278460/attachment.bin 

More information about the Mono-devel-list mailing list