NativeScript / NativeScript/android
very slow interface constructor
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

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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