My article EJB told me how to fall in love with you - "Proficient in EJB" and EJB, mentioning the performance of Java serialization is very low, at least Sun provides the performance of JDK, which gives a simple test program Proof I: First construct a simple test class class class1 imports serializable {int m_nint = 1; long m_nlong = 2; double m_double = 3; string m_sstring = "test"; int getint () {return m_nint;} void setInet (int nInt) {m_nInt = nInt;} long getLong () {return m_nLong;} void setLong (long nLong) {m_nLong = nLong;} double getDouble () {return m_dDouble;} void setDouble (double dDouble) {m_dDouble = dDouble } String getString () {return m_sstring;} void setstring (String SString) {m_sstring = sstring;} public string toxmlstring () {return "