-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
请教个问题,json.encode的对象比较大时,encode会慢,并且会卡住UI,改如何解决? #285
Comments
你的问题可以在项目里复现那?一般而言网络端返回的数据也是在Furture内处理完之后在给View层显示。虽然Dart是单线程模式,但是异步能更好的分配调度,貌似我还没遇到你说的。 |
真的数据特别大的话,用 isolate 吧 |
@CarGuo 谢谢提示,我用compute解决了,下面是我的代码 |
应该是跨线程了,后续会尝试增加isolate的 |
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个问题困扰我一天了,麻烦您解答下,谢谢啦!🙂
The text was updated successfully, but these errors were encountered: