内容简介:FST 2.56 发布,Java 的高性能序列化库
FST 2.56 发布了,这是一个小更新版本,主要是合并了一些 PR,同时对 JSON 反序列化的 Unknown 问题进行小改进。
FST fast-serialization 是重新实现的 Java 快速对象序列化的开发包。序列化速度更快(2-10倍)、体积更小,而且兼容 JDK 原生的序列化。要求 JDK 1.7 支持。
// ! reuse this Object, it caches metadata. Performance degrades massively // if you create a new Configuration Object with each serialization ! static FSTConfiguration conf = FSTConfiguration.createDefaultConfiguration(); ... public MyClass myreadMethod(InputStream stream) throws IOException, ClassNotFoundException { FSTObjectInput in = conf.getObjectInput(stream); MyClass result = in.readObject(MyClass.class); // DON'T: in.close(); here prevents reuse and will result in an exception stream.close(); return result; } public void mywriteMethod( OutputStream stream, MyClass toWrite ) throws IOException { FSTObjectOutput out = conf.getObjectOutput(stream); out.writeObject( toWrite, MyClass.class ); // DON'T out.close() when using factory method; out.flush(); stream.close(); }
下载地址: https://github.com/RuedigerMoeller/fast-serialization/releases
以上所述就是小编给大家介绍的《FST 2.56 发布,Java 的高性能序列化库》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Ruby on Rails 3 Tutorial
Michael Hartl / Addison-Wesley Professional / 2010-12-16 / USD 39.99
“Ruby on Rails™ 3 Tutorial: Learn Rails by Example by Michael Hartl has become a must read for developers learning how to build Rails apps.” —Peter Cooper, Editor of Ruby Inside Using Rails ......一起来看看 《Ruby on Rails 3 Tutorial》 这本书的介绍吧!
SHA 加密
SHA 加密工具
RGB HSV 转换
RGB HSV 互转工具