Open Bug 1861626 Opened 2 years ago Updated 5 hours ago

Use rtoml instead of toml to read test manifests

Categories

(Firefox Build System :: Task Configuration, enhancement)

enhancement

Tracking

(Not tracked)

REOPENED

People

(Reporter: marco, Assigned: marco)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

Not sure how faster it is, but it's worth investigating.

rtoml is a compiled module, that makes it significantly harder to deploy. (even more so for decision tasks)

(also, the switch from tomlkit to toml didn't really impact decision task times, despite having had a dramatic effect on configure)

Time to read 7777 manifests:

import timeit
import toml
import tomlkit
import tomllib
import rtoml

with open("browser/base/content/test/popups/browser.toml", "r") as f:
    manifest = f.read()

def parsewithtoml():
    toml.loads(manifest)

def parsewithtomlkit():
    tomlkit.parse(manifest)

def parsewithtomllib():
    tomllib.loads(manifest)

def parsewithrtoml():
    rtoml.load(manifest)

print(timeit.timeit('parsewithtoml()', number=7777, globals=globals()))
print(timeit.timeit('parsewithtomlkit()', number=7777, globals=globals()))
print(timeit.timeit('parsewithtomllib()', number=7777, globals=globals()))
print(timeit.timeit('parsewithrtoml()', number=7777, globals=globals()))

toml 4.716776925000886
tomlkit 70.1370183600011
tomllib 2.5913682589998643
rtoml 0.6805894560020533

See Also: → 1949143
Assignee: nobody → mcastelluccio
Status: NEW → ASSIGNED
Keywords: leave-open

Julien, could you help with the decision image update like you did in bug 1840829?

Flags: needinfo?(jcristau)
Flags: needinfo?(jcristau)
Attachment #9529277 - Attachment description: Bug 1861626 - use new gecko_decision docker image. r?#releng,marco → Bug 1861626 - use gecko_decision:5.1.0 docker image. r?#releng,marco
Status: ASSIGNED → RESOLVED
Closed: 3 days ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5ccf4a7d77a3 https://hg.mozilla.org/mozilla-central/rev/b50fe26f9711 Revert "Bug 1861626 - use gecko_decision:5.1.0 docker image. r=marco,releng-reviewers,bhearsum" to unbreak nightlies.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 147 Branch → ---
Depends on: 2003144
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: