fastjson发布1.1.0版本

此版本引入ASM优化序列化和反序列化的性能,并采用预测优化算法提升解析效率。新增功能包括按字段名顺序输出及JSON-LIB兼容性。
这个版本引入了asm优化encode和decode的性能,使用了新的预测读取优化算法,大幅度提升了decode的性能。这个版本没有bug fixed。

[b]Improvement[/b]

[FASTJSON-51] - 提供按字段名称顺序输出,具体信息 http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=3637285

[b]New Feature[/b]

[FASTJSON-49]- 提供兼容JSON-LIB的特性,具体信息: http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=3637292
[FASTJSON-52] - 引入ASM优化序列化和反序列化性能。动态生成类,避免反射。
[FASTJSON-53] - 使用预测优化算法优化parser的性能,这个算法大幅度提升了parser的性能。

使用https://github.com/eishay/jvm-serializers/提供的测试跑的结果如下:
[table]
| | 序列化时间 | 反序列化时间 | 大小 | 压缩后大小 |
|java序列化| 8703 | 41871 | 889 | 541|
|hessian| 6453 | 9636 | 501 | 313 |
|protobuf|3020 | 1666 | 239 | 149 |
| thrift | 3160 | 1960 | 349 | 197 |
| avro | 3510 | 1949 | 221 | 133 |
| jackson-databind | 3007 | 4382 | 503 | 271 |
| fastjson | 2226 | 2896 | 468 | 251 |
[/table]
apply plugin: 'com.android.application' android { compileSdkVersion 34 defaultConfig { applicationId "com.cheaperp.ec" minSdkVersion 21 targetSdkVersion 34 versionCode 7 versionName "7.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } } dependencies { implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' implementation 'de.hdodenhof:circleimageview:3.0.0' // 圓形 ImageView implementation 'com.sdsmdg.tastytoast:tastytoast:0.1.1' // 帶有花樣的 Toast implementation 'com.squareup.okhttp3:okhttp:4.2.2' // OkHttp 網路功能 implementation 'com.zhy:okhttputils:2.6.2' // OkHttp 工具封裝 // 圖片加載(使用 Glide 最新版本 4.10.0) implementation 'com.github.bumptech.glide:glide:4.10.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0' implementation 'jp.wasabeef:glide-transformations:4.1.0' // 毛玻璃效果 implementation 'com.squareup.picasso:picasso:2.8' // 另一個圖片加載器(如需) // 權限申請 implementation 'com.yanzhenjie:permission:2.0.3' // UI 元件 implementation 'com.android.support:design:28.0.0' // ⚠️ 注意:這裡的 support:design 30.0.0 **是錯的**,應該避免與 androidx 同時使用 // 建議改用 androidx 版本或刪除此行 implementation 'com.youth.banner:banner:1.4.10' // Banner 輪播 implementation 'com.github.Shashank02051997:FancyAboutPage-Android:2.6' // 關於頁面 // JSON 處理(保留一個版本) implementation 'com.google.code.gson:gson:2.8.6' // 最新穩定版,移除 2.7 // fastjson(如確實需要) implementation 'com.alibaba:fastjson:1.2.70' // RecyclerView 及輔助 implementation 'androidx.recyclerview:recyclerview:1.1.0' implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46' // 保留最新版本,移除 2.9.22 // PickerView(三級聯動) ⚠️ 請只保留一個版本 implementation 'com.contrarywind:Android-PickerView:4.1.8' // 保留較新版本 // EventBus implementation 'org.greenrobot:eventbus:3.1.1' // 下拉刷新 implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-14' implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0-alpha-14' // 外部 JAR } 「功能異常」政策:違反「功能異常」政策
06-20
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值