Refactor and clean ExtendedJSONObject parsing code.

RESOLVED FIXED in mozilla20

Status

()

defect
RESOLVED FIXED
7 years ago
2 years ago

People

(Reporter: nalexander, Assigned: nalexander)

Tracking

(Blocks 1 bug)

unspecified
mozilla20
All
Android
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

This will reduce memory pressure a little.  Bug 747721 is an error at org.json.simple.parser.Yylex.<init>(Yylex.java:231); that line is allocating a 16kb buffer for input text.  We allocate one of those for each JSONParser instance we create.  Let's make this bug be a simple attempt to create less JSONParser instances.
Reworking this to be a first step towards improving our parsing code.  This will just be cleaning and groundwork for the next improvements.
Summary: Make ExtendedJSONObject class use a single static JSONParser instance. → Refactor and clean ExtendedJSONObject parsing code.
Assignee: nobody → nalexander
Status: NEW → ASSIGNED
https://hg.mozilla.org/mozilla-central/rev/e2df102b0fe7
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Blocks: 802723
Product: Mozilla Services → Android Background Services
Product: Android Background Services → Firefox for Android
You need to log in before you can comment on or make changes to this bug.