Migrating telemetry to Glean increases the XUL size
Categories
(Toolkit :: Telemetry, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr128 | --- | unaffected |
firefox132 | --- | wontfix |
firefox133 | --- | wontfix |
firefox134 | --- | fix-optional |
People
(Reporter: mayankleoboy1, Unassigned, NeedInfo)
References
(Depends on 1 open bug, Regression)
Details
(Keywords: regression)
Whenever Telemetry probes are migrated to Glean, there is a 0.1% to 0.2% increase in XUL size. Some examples :
here
here
here
here
here
here
here
The increase in XUL size may be expected as some code is moving from js or addon or code outside of XUL to inside XUL. But noting here for posterity.
Additionally, the increase per landing is small (0.1% to 0.2%). However, it may be worthwhile to analyze the overall impact of all the migration/conversion on the size.
Marking initial "regressed by" on bug 1918702, but please change as appropriate.
Adding some folks who may have some opinion.
Comment 1•3 months ago
|
||
I think a small size increase is expected, but I don't know how to verify if the increase noticed in the charts linked above is within what's expected or includes excessive overhead.
(Adding Chutten who might have ideas about how much of a size increase is expected, and Markus who might have ideas about how to visualize what actually increased.)
Comment 2•3 months ago
|
||
Set release status flags based on info from the regressing bug 1918702
Comment 3•3 months ago
|
||
"0.1% to 0.2%" aren't small increases if it happening often
Does bloaty help with the analysis ?
Updated•3 months ago
|
Comment 5•3 months ago
|
||
The generated file toolkit/components/glean/GleanJSMetricsLookup.cpp
is holding a lot of static data, and it's size seems to be linear in the number of metric
Comment 6•3 months ago
|
||
(In reply to [:sergesanspaille] from comment #5)
The generated file
toolkit/components/glean/GleanJSMetricsLookup.cpp
is holding a lot of static data, and it's size seems to be linear in the number of metric
This'll be almost entirely due to gMetricStringTable
which is broadly analogous to e.g. TelemetryScalarData'h
's gScalarsStringTable
-- it's all the metric names as strings so JS APIs can reference them (and also so e.g. the profiler can get names for metrics instances for marking). Alas we've found no cheaper way to record these.
Updated•3 months ago
|
Comment 7•3 months ago
|
||
The severity field is not set for this bug.
:chutten, could you have a look please?
For more information, please visit BugBot documentation.
Comment 8•3 months ago
|
||
Oh, right, I meant to ask: Having large functions seems bad, but in a vague and non-threatening sort of way. Is this a "Fix this now, this is costing us megabux" sort of thing or a "Fix this when you get a chance, this is mildly irritating" sort of thing?
Reporter | ||
Comment 9•3 months ago
|
||
I cant really comment on that :) . Maybe a build peer or a folks from product may have an opinion here...
ni? you back.
Comment 10•3 months ago
|
||
Sounds like a :glandium-shaped question, then
Comment 11•3 months ago
|
||
We have some data which shows that bigger downloads = less installs of Firefox. So, I would like to decrease file sizes when possible with a small/medium investments.
Romain can confirm this.
Description
•