CompactedObjectOutputStream oos = new CompactedObjectOutputStream(os);
oos.writeObject(data);
System.out.println("compacted java:"+Bytes.bytes2hex(os.toByteArray())+":"+os.size());
os = new ByteArrayOutputStream();
Hessian2Output h2o = new Hessian2Output(os);
h2o.writeObject(data);
h2o.flushBuffer();
System.out.println("hessian:"+Bytes.bytes2hex(os.toByteArray())+":"+os.size());
os = new ByteArrayOutputStream();
Builder<long[]> lb = Builder.register(long[].class);
lb.writeTo(data, os);