dotnet / dotnet/maui

Android interpreter really slow for JSonParsing

Open
#35,140 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

t/bug
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.