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

为何使用异步处理用于View更新及列表的动态渲染 #43

Open
xc5338 opened this issue Aug 5, 2022 · 1 comment
Open

为何使用异步处理用于View更新及列表的动态渲染 #43

xc5338 opened this issue Aug 5, 2022 · 1 comment

Comments

@xc5338
Copy link

xc5338 commented Aug 5, 2022

有从代码提交记录中看到,awtk-mvvm框架在 (commitID: fd91dea )提交之前对View更新进行的是同步处理,该commit提交后使用了idle进行异步处理,包括在列表的动态渲染也是使用了异步处理。想请教一下,在这几处View更新的时候使用异步处理的目的是啥呀,使用异步处理执行View更新会不会导致界面刷新性能不佳。
screen_shot_1659662827416

@xianjimli
Copy link
Member

异步主要是避免重复更新界面,性能只会更快。

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