perf: 优化首屏启动速度,推迟非关键初始化#55
Open
laoshuikaixue wants to merge 3 commits into
Open
Conversation
- 实现基于文件哈希的原生模块构建缓存,避免重复编译 - 添加 .build-native-cache.json 文件到 .gitignore - 重构构建脚本支持增量构建检测 - 延迟自动更新检查以避免抢占首屏资源 - 添加组件懒加载优化页面启动性能 - 增加详细的启动时序日志便于性能监控 - 优化流媒体存储初始化逻辑提升启动速度
Collaborator
|
原生模块构建缓存和增量构建是不必要的。cargo 已经有了 |
- 删除了 .gitignore 中的 .build-native-cache.json 文件忽略规则 - 移除了构建脚本中的哈希计算、文件收集和缓存相关函数 - 删除了 NativeBuildCache 接口定义 - 移除了 shouldSkipNativeBuild 和 writeNativeBuildCache 函数 - 清理了构建过程中的缓存检查逻辑 - 简化了构建流程,直接执行构建而无需缓存验证
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动类型
是否包含破坏性变更
自查清单
pnpm format,并确认pnpm typecheck、pnpm lint通过pnpm build:native验证;未手写native/*/index.d.tsdev分支提交