Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

移除ReactiveUI #1514

Merged
merged 4 commits into from
Oct 9, 2022
Merged

移除ReactiveUI #1514

merged 4 commits into from
Oct 9, 2022

Conversation

Richasy
Copy link
Owner

@Richasy Richasy commented Oct 9, 2022

Close

经过实践,ReactiveUI 尽管具备开箱即用的优点,但是并不轻量,引入后伴随着大量代码生成,容易产生内存泄漏和性能损耗(应该是我不会用)。为了降低这种不透明带来的开发风险,移除ReactiveUI及其组件,并使用 CommunityToolkit.Mvvm 代替

PR 类型

这个 PR 的目的是什么?

  • 重构 (没有功能修改,没有 API 更新)

当前行为是什么?

应用存在内存泄漏和运行性能过低等问题

新的行为是什么?

在移除 ReactiveUI 后,关闭视频后的内存释放较之前多了40%,整体运行效率难以量化,但是体验好了一些

PR 检查清单

请检查你的 PR 是否满足以下要求:

  • 应用成功启动
  • 文件头已经被添加至所有源文件中
  • 包含破坏式更新

备注

重构后的应用功能有待进一步的测试

@Richasy Richasy added the 维护 ⚒️ 涉及项目管理,比如自动化配置等 label Oct 9, 2022
@Richasy Richasy merged commit 3113e73 into main Oct 9, 2022
@Richasy Richasy deleted the richasy/removeReactiveUI branch October 9, 2022 15:15
@JasonWei512
Copy link
Contributor

这很清真.jpg

请问 Microsoft MVVM Toolkit 要做 debounce 和 throttle 有什么比较好的方法吗?谢谢!

@Richasy
Copy link
Owner Author

Richasy commented Oct 10, 2022

@JasonWei512 没有提供的API的话,那么正常C#怎么做debounce和throttle就咋做了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
维护 ⚒️ 涉及项目管理,比如自动化配置等
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants