[Mono-dev] Serialization performance + remoting
meebey at meebey.net
Thu Aug 2 16:32:35 EDT 2007
On Thu, 2007-08-02 at 22:00 +0200, pablosantosluac wrote:
> I'd like to get some tips on how to speed up object serialization. In my
> current testing scenario I'm serializing about 7400 objects (references)
> (which in turn contain about 3 objects each), and in my laptop it takes
> about 1500ms to complete.
As smuxi  uses .NET remoting very heavily I had to test/tune a lot...
I found object references are very expensive, and not all objects need
to be passed by reference, like simple data containers (models). Just
add the Serializable attribute to those classes instead of extending
Also synchronized calls are (time-)expensive, you should either try to
reduce the number of calls or use async calls.
I often use ngrep (network sniffer) to find unneeded calls, as the whole
communication is very transparent, you easily do calls without
Mirco 'meebey' Bauer
PGP-Key ID: 0xEEF946C8
FOSS Developer meebey at meebey.net http://www.meebey.net/
PEAR Developer meebey at php.net http://pear.php.net/
Debian Developer meebey at debian.org http://www.debian.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 481 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070802/69dd88b8/attachment.bin
More information about the Mono-devel-list