Android interpreter really slow for JSonParsing
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 296
Description
Description
.net 10.0
On an AndroidTV (ARM7), using JsonDocument.Parse(text) on a 5000000 bytes string takes 36 seconds.
Without interpreter, it takes only 3 seconds.
Note :
- same code on Windows 11 takes only 100ms.
- same code on an Android Smartphone (ARM8) with interpreter takes 4 seconds
Steps to Reproduce
Use an AndroidTV under ARM7.
Call JsonDocument.Parse(text) on a 5000000 bytes file :
- with interpreter
- without interpreter (UseInterpreter = false in project file)
Difference is about 10x.
Link to public reproduction project repository
No response
Version with bug
10.0.50
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11 under ARM7
Did you find any workaround?
I disabled the interpreter.
Relevant log output
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 by reproducing the reported JsonDocument.Parse(text) timings on Android 11 ARM7 with and without UseInterpreter=false, using the stated 5,000,000-byte input. Compare the Android ARM7 results with ARM8 and Windows, then identify the interpreter path responsible; done means the slowdown is fixed or its cause is isolated with measurements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- mobile-dev, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100