Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main thread stucked when resolve large network response #147

Open
daQiuQiu opened this issue Jul 27, 2022 · 3 comments
Open

Main thread stucked when resolve large network response #147

daQiuQiu opened this issue Jul 27, 2022 · 3 comments

Comments

@daQiuQiu
Copy link

网络请求列表点击进入详情,请求返回数据很大,比如一个很大的json。会卡死主线程数秒。 100% cpu

@daQiuQiu
Copy link
Author

具体是这一行
let height = content.height(with: UIFont.systemFont(ofSize: 13), constraintToWidth: (UIScreen.main.bounds.size.width - 30))
可能不适合这么去计算,可能可以考虑弄一个固定高度textview

@Creolophus
Copy link

一样的问题,有更新吗?

@daQiuQiu
Copy link
Author

可以简单魔改 count超过10000就不计算了 自己定个值

zhaozzq added a commit to zhaozzq/CocoaDebug that referenced this issue Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants