Closed
Bug 1600963
Opened 5 years ago
Closed 4 years ago
tidy up some json serialization stuff
Categories
(Core :: Security: CAPS, task)
Core
Security: CAPS
Tracking
()
RESOLVED
FIXED
mozilla73
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: froydnj, Assigned: froydnj)
Details
Attachments
(5 files)
While trying to understand some errors related to jsoncpp, I stumbled across this json serialization code principals have, and we can do things slightly better.
Assignee | ||
Comment 1•5 years ago
|
||
Updated•5 years ago
|
Assignee: nobody → nfroyd
Assignee | ||
Comment 2•5 years ago
|
||
By declaring the individual enum types to fit in a uint8_t
, and
rearranging the templated KeyValT
struct, we can pack KeyValT
to save a word of storage.
Depends on D55686
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D55687
Assignee | ||
Comment 4•5 years ago
|
||
This change means fewer temporary objects, particularly nsCString
objects.
Depends on D55688
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D55689
Pushed by nfroyd@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/80ea7acaee75 reduce boilerplate for serialized keys in principals; r=mccr8 https://hg.mozilla.org/integration/autoland/rev/9a8f628488e8 reduce size of principal KeyVals; r=mccr8 https://hg.mozilla.org/integration/autoland/rev/ed26e312383c don't lookup keys twice in the serialized JSON; r=mccr8 https://hg.mozilla.org/integration/autoland/rev/9737d57b7fd0 build fields directly in the returned array; r=mccr8 https://hg.mozilla.org/integration/autoland/rev/4c764c0dbfd8 remove some duplicate includes from ContentPrincipal.cpp; r=mccr8
Comment 7•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/80ea7acaee75
https://hg.mozilla.org/mozilla-central/rev/9a8f628488e8
https://hg.mozilla.org/mozilla-central/rev/ed26e312383c
https://hg.mozilla.org/mozilla-central/rev/9737d57b7fd0
https://hg.mozilla.org/mozilla-central/rev/4c764c0dbfd8
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox73:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
You need to log in
before you can comment on or make changes to this bug.
Description
•