[jboss-dev-forums] [Design of JBoss Serialization] - Re: Poor performance with test...

lxk123 do-not-reply at jboss.com
Thu Nov 9 19:45:33 EST 2006


I have similar experience: this package is slower than standard JDK 1.4.2 and consuming more memory.  Is there something wrong on the following code snippet?


---------------------
      ByteArrayOutputStream bstream = new ByteArrayOutputStream();
      org.jboss.serial.io.JBossObjectOutputStream out = new org.jboss.serial.io.JBossObjectOutputStream(bstream);

      out.writeObject(obj);
      out.close();

      // Loading the memory block as an Object
      ByteArrayInputStream binstream = new ByteArrayInputStream(bstream.toByteArray());
      org.jboss.serial.io.JBossObjectInputStream oin =  new org.jboss.serial.io.JBossObjectInputStream(binstream);
      
      Object newobj = oin.readObject();


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984726#3984726

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984726



More information about the jboss-dev-forums mailing list