[wpt-sync] Sync PR 25979 - Get the gitignore cache working, consistently use fast JSON modules
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox84 fixed)
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 25979 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/25979
Details from upstream follow.
b'Sam Sneddon <gsnedders@apple.com>' wrote:
Get the gitignore cache working, consistently use fast JSON modules
Some Sam Sneddon person broke the gitignore cache with e98eee5aec6 (as MutableMapping provides a default
__bool__
, effectively returningbool(len(self))
), and this gets it working again.This also slightly more consistently gets us using quicker JSON modules, and factors out a bunch of code for this which uses whichever we want. This provides a further benefit for those with them installed (
ujson
especially).A few benchmarks (Py3.8, with a modified untracked file in the tree):
- master: 3.01s
- this branch: 2.82s
- this branch + orjson: 2.80s
- this branch + ujson: 2.17s
- this branch + orjson + ujson: 2.16s
- this branch + orjson + ujson patched to fix https://github.com/ultrajson/ultrajson/issues/429: 1.99s
(I don't remember why we set
caller_owns_obj=False
inmanifest.write
, given it exists for that reason, but with that set toTrue
and with all the above we're down to 1.52s.)
Assignee | ||
Comment 1•4 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=167e240ae27a0e84952d52495f4a80bde722d36f
Assignee | ||
Comment 2•4 years ago
|
||
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ae756f0230ee [wpt PR 25979] - Get the gitignore cache working, consistently use fast JSON modules, a=testonly
Comment 4•4 years ago
|
||
bugherder |
Description
•