[Mono-list] Advice on optimisation in xml deserialisation

Alan McGovern alan.mcgovern at gmail.com
Wed Jan 9 18:48:23 EST 2008


There was a thread a week or two ago called 'Speed difference Windows
- Linux' which noted there was a big difference in performance between
.NET and mono. I did a brief bit of profiling and came up with this
patch which improves performance ~30% for the testcase which was
attached in the email. This reduces runtime memory usage by about 10MB
(80MB -> 70MB) and decreases processing time by 30% (3.4s -> 2.6s).

Anyone have any ideas on how to tidy this up to make it neater? Also,
would this optimisation be too specific, or can it be generalised
somewhere higher up in the stack.

Alan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xml.patch
Type: text/x-patch
Size: 1346 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20080109/b469d4b6/attachment.bin 


More information about the Mono-list mailing list