NativeScript / NativeScript/android

very slow interface constructor

Open
#1,601 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
563
Forks
144
Avg merge
10h 46m
Merged PRs (30d)
14

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/platforms/android/java/com/nativescript/https/OkHttpResponse.java around line 45 and reproduce the reported profiling case for interface creation and extension. Determine the cause of the reported delay and whether a faster supported approach exists; done means the behavior is explained and any improvement is demonstrated with comparable timing.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev, performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.