发布于 2018-01-04 03:19:29 | 138 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

FST fast-serialization

FST fast-serialization 是重新实现的 Java 快速对象序列化的开发包。序列化速度更快(2-10倍)、体积更小,而且兼容 JDK 原生的序列化。要求 JDK 1.7 支持。


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 的高性能序列化库
FST 2.50 发布,快速的 Java 序列化库
FST 2.45 发布,快速的 Java 序列化库
FST 2.44 发布,快速的 Java 序列化库
FST 2.34 发布,Java 快速序列化库
FST 2.27 发布,Java 快速序列化库
FST 2.25 发布,Java 快速序列化库
FST 2.24 发布,Java 快速序列化库
FST 2.23 发布,修复 Android 上使用的 Bug
FST 2.22 发布,Java 快速序列化库
FST 2.21 发布,Java 快速序列化库
FST 2.20 发布,Java 快速序列化库
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务