[Version 2.0] Layout deserializing very slow

Oct 31, 2012 at 11:16 AM

I find it sometimes taking up to 4 seconds to deserialize the layout. This adds up to the application startup time which is not good.

I think the main reason is due to the use of XmlSerializer which is using dynamic compilation for each type used. This involves IO operation (writing temporary .cs files to temp folder and compile) which might be the bottleneck. 

If XmlReader is used to deserialize this will be greatly improved. (I have seen XmlDocument also slow compared to XmlReader)

Nov 8, 2012 at 6:29 AM

I have the same problem. But if I write a custom serializer with XmlReader instead its not realy faster. I think there is a general problem with the XmlSerializer. It would be nice if there is another serialize methode in future versions, which are usable.

Nov 9, 2012 at 5:39 AM

I have uploaded a patch (id 13189). This is for deserializing only.