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

将 Magpie.App.dll 合并进 Magpie.exe #1032

Merged
merged 31 commits into from
Dec 18, 2024
Merged

将 Magpie.App.dll 合并进 Magpie.exe #1032

merged 31 commits into from
Dec 18, 2024

Conversation

Blinue
Copy link
Owner

@Blinue Blinue commented Dec 16, 2024

Magpie 从 v0.10 开始使用 XAML Islands 架构,包含一个原生 exe 和一个 UWP dll。这个 PR 迁移到了和 WinAppSDK 相似的架构,得益于 IDE 的改进,现在原生代码和 WinRT 组件可以共存于一个项目。这带来了很多好处:

  1. 体积减小。由于 HybridCRT 静态链接 STL,将两个组件合并可以去除重复的代码。
  2. 性能提高。过去 exe 使用 reg-free winrt 激活 dll 中的组件,每次调用都需要跨越 ABI 边界;而现在边界不复存在,因此获得了大量的优化机会,而且大大减少了 idl 的使用。
  3. 可维护性提高。过去 Magpie 和 Magpie.App 由于是不同类型的项目,很难共享代码,现在由于两个项目合并,Shared 项目不再需要了。

@Blinue Blinue added the enhancement New feature or request label Dec 16, 2024
@Blinue Blinue merged commit 8b278b4 into dev Dec 18, 2024
4 checks passed
@Blinue Blinue deleted the refactor/no-app branch December 18, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant