Hello, I have an ASP.Net 1.1. Web application written in VB.Net that persists the ViewState on the server by overriding the SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium methods of the System.Web.UI.Page class.ÃÂ I'm currently using the LosFormatter to serialize and deserialize the viewstate.I've ran into a problem where the deserialization method is taking way too much time (in the order of minutes!) to deserialize.ÃÂ ÃÂ As a result I've been looking for a better way to serialize/deserialize in .Net.My research found the BinaryFormatter, which during tests outperformed the LosFormatter completely!ÃÂ There is only one problem though, pretty much everywhere on the Web people state "Don't LetÃÂ the BinaryFormatter get to your data".ÃÂ My question is Why, and if I shouldn't use the BinaryFormatter, then what should I use?
Note: To test LosFormatter vs BinaryFormatter I created a class object that had both the <Serializable()> attribute set and a TypeConverter for the class object.ÃÂ The class object contained several properties of typeÃÂ string, integer, long, datetime, and a child class object that had string and long properties.I ran the object, populated with test data,ÃÂ through the LosFormatter serialize and deserialize methods 5000 times with a result of 26 seconds execution time.ÃÂ I ran the same object, with the same data,ÃÂ through the Bina
View Complete Post