NativeScript / NativeScript/android

inconsistency in native class extension duration

未关闭
#1,650 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
C++
星标
563
派生
144
平均合并
10 小时 46 分钟
30 天内合并 PR
14

描述

I am working on perfs and spending a lot of time on profiling timelines.
I see very weird inconsistencies in materializing and native class `extending.

This is 2 different app starts with the same exact code. Globally everything is the same except for those "yellow" times.
Here it is a factor 10 which is pretty big.

I add this mostly to start the discussion on what could be the reason for that and how we can make sure we get the smallest one.

  • could that be do to profiling?
  • @darind do you have an opinion on this?
  • here it is in debug, but i see the same kind in production. The difference might be smaller though i am not sure. Can debug/production make a difference for this?
Screenshot 2020-12-17 at 15 37 58

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

未指定源文件、测试或入口点。首先,使用完全相同的代码在 debug 和 production 模式下分别复现两次应用启动,同时比较 profiling 时间线,并调查 profiling 或构建模式是否造成了物化和原生类扩展方面的差异。完成标准是记录下原因,以及一种经同意的测量或最小化该差异的方法。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, cpp
领域
mobile-dev, performance
Issue 类型
缺陷
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。