alibaba / alibaba/HandyJSON

HandyJSON性能堪忧,解析37kb的json数据花了22s

Open
#433 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.3k
Forks
677
PR merge metrics
No merged PRs in 30d

Description

HandyJSON性能堪忧,解析37kb的json数据花了22s

由于数据量大,接口请求频繁,开始放在主线程有卡顿,所以切换到子线程解析非NSObject子类的model,37kb的json花了22s

鄙人怀疑是线程的问题,请高人指点

![image](https://user-images.githubusercontent.com/86761873/124870739-5dddeb00-dfed-11eb-93f7-5aa74e06f682.png)

![截屏2021-07-08 13 12 19](https://user-images.githubusercontent.com/86761873/124871488-4c491300-dfee-11eb-8f3f-32d3fb92f89d.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files, tests, entry points, or reproducible model/code are included in the report. Begin by reproducing the 37 KB parsing case and profiling the non-NSObject model path off the main thread; done means identifying whether the reported 22-second delay is reproducible and locating the responsible operation.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.