红联Linux门户
Linux帮助

fastjson-1.2.11发布,Bug修复,性能提升

发布时间:2016-05-03 09:24:19来源:红联作者:baihuo
fastjson-1.2.11 发布,Bug修复,性能提升,BeanToArray模式性能超越probuf。

Bug 修复

修复在某些场景下,List字段序列化后结果不对的问题。这问题因1.2.10优化引起,在此版本1.2.11中修复。

修复FastJsonHttpMessageConverter和spring 4.x版本不兼容的问题 Issue591 Issue574 Issue577

功能增强

新增Class Level SerializeSerializeFilter功能,允许将SerializeSerializeFilter注册到Class级别

JSON类新增API,parseObject对InputStream直接支持。https://github.com/alibaba/fastjson/wiki/JSON_parseObject_InputStream_cn

JSON类新增API writeJSONString对OutputStream/Writer直接支持。https://github.com/alibaba/fastjson/wiki/JSON_writeJSONString_cn

JSONType新增加seeAlso配置,类似JAXB中的XmlSeeAlso,允许输出更短的className名称。https://github.com/alibaba/fastjson/wiki/JSONType_seeAlso_cn

增强对BeanToArray模式的支持

序列化支持新特性IgnoreErrorGetter,启用后忽略报错的getter方法

性能提升

在fastjson-1.2.11版本中,序列化性能有了很大提升,总体性能远超过jackson的普通模式和afterburn模式。BeanToArray模式的提升更是明显,在BeanToArray模式下,eishay的测试已经超越protobuf。具体测试报告看这里 https://github.com/alibaba/fastjson/wiki/Benchmark_1_2_11

软件详情:http://git.oschina.net/wenshao/fastjson

下载地址:https://github.com/alibaba/fastjson/archive/1.2.11_release.tar.gz

来自:开源中国社区
文章评论

共有 0 条评论