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

Feat: provide/inject 完善父组件继承(小程序) #1781

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

wangshunnn
Copy link
Collaborator

@wangshunnn wangshunnn commented Dec 25, 2024

Mpx 输出小程序端的父组件引用关系实现是基于小程序原生API selectOwnerComponent。在 Mpx 中对该 API 性能测速如下:

  • 测试环境:iPhone 12 真机
场景 组件结构 总运行耗时(平均值) 单次 API 调用平均耗时
场景一 1000 个子组件平铺形式排列 ~27 ms(调用 API 1000 次) ~0.027 ms/iter
场景二 1100 个组件多叉树形式递归嵌套排列 ~32 ms(调用 API 1100 次) ~0.029 ms/iter

API 性能测试符合预期

@wangshunnn wangshunnn changed the title feat: provide/inject 父组件继承(小程序) Feat: provide/inject 完善父组件继承(小程序) Dec 25, 2024
@wangshunnn wangshunnn requested a review from hiyuki December 25, 2024 07:42
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

Successfully merging this pull request may close these issues.

1 participant