NativeScript / NativeScript/android

very slow interface constructor

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

还没有人认领这个 Issue。

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

描述

While profiling my apps i can see that some very simple interface can take a really long time to be "created"
For example a very simple interface not extending anything and with one simple method takes 227ms to be created/call
Screen Shot 2020-04-13 at 11 50 13
Here is the source of that interface

First is i wonder why it takes so much times.
Then if it can't be solved is there a faster way? Extending seems to be real slow too.

贡献指南

打开贡献指南

从这里开始

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

调研方向

从 src/platforms/android/java/com/nativescript/https/OkHttpResponse.java 第 45 行附近开始,重现所报告的 interface 创建和扩展 profiling 场景。确定所报告延迟的原因,以及是否存在更快的受支持方法;当行为得到解释,并且任何改进都通过可比的计时得到演示时,即视为完成。

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

评估

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

把新 issue 发到你的邮箱

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