当前位置

网站首页> 程序设计 > 程序资讯 > 软件更新资讯 > 浏览文章

Kryo 3.0 发布,高性能的 Java 序列化库

作者:小梦 来源: 网络 时间: 2024-08-17 阅读:

第29期OSC源创会#南京#开始报名,AngularJS、Netty 等

高性能的 Java 序列化库 —— Kryo 发布了全新的 3.0 版本,新版本改进内容包括:

  • Fixed #248. There was a bug in the buffer resizing code. (23830f6)

  • end() for deflater and inflater. (a306471)

  • Fixed DeflateSerializer. (86aecf1)

  • BigIntegerSerializer, BigDecimalSerializer, TreeMapSerializer and TreeSetSerializer optimizations and enhacements (2d6204d):

    • Proper handle of subclasses (Fix #166)

    • Small optimizations for common BigDecimal and BigInteger constants (Fix #238)

    • Unit test to avoid regression of PermGen leaks (ensure fix of #170 contributed by #173)

  • Remove unnecesary code (8efb79c)

  • Override writeChar and readChar methods to use unsafe: writeChar now performs about 125% faster and readChar 10% faster than overriden safe versions. (45f510d)

  • Small optimization (19d88db)

  • Fix a NPE (004cc5c)

  • DateSerializer and LocaleSerializer enhacements and tests (ac4ebef, 9e63c65, 2f403c7, 213a767)

  • Change KryoPool to interface + Builder, make SoftReferences optional. (38c6815)

  • Set StdInstantiatorStrategy as default fallback instantiator strategy. (0a43a64)

  • Fix #223. setTotal should take long as a parameter. (ffe6931)

  • Bump version to 2.25.0-SNAPSHOT (ca153ba)

  • Change groupId to com.esotericsoftware. (d8e519a)

  • Fix shaded pom to use the correct reflectasm groupId (4259143)

  • Add simple, queue based kryo pool. (05fed9c)

  • Change default artifact not to shade reflectasm, use OSGi'ed reflectasm 1.3.0 (e1e3b0b)

  • Update minlog to 1.3.0 which is now OSGi'ed (de5d2a3)

  • Add automated compatibility check (with previous version) (f85d6c9)

  • Fixed #227 (96f7225)

  • Exception -> Throwable (1f0ba1b)

  • Recover from exceptions in Util.string() (2d15fc2)

  • Properly handle removal of transient fields. Till now it was not possible to remove them. (faca949)

  • Fixed #218 (3bac35c)

  • Add support for serialization of Java8 closures (see #215). (0b733dd)

兼容性:

  • Serialization compatible

    • Standard IO: Yes

    • Unsafe-based IO: No

  • Binary compatible - No (Details)

  • Source compatible - No (Details)

下载地址:kryo-parent-3.0.0.zip

热点阅读

网友最爱