Closed
Bug 1493527
Opened 7 years ago
Closed 7 years ago
Make merge-analyses.py faster
Categories
(Webtools :: Searchfox, enhancement)
Webtools
Searchfox
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kats, Assigned: kats)
Details
It's pretty slow, like a couple of hours to merge Linux and macOS m-c analysis files. I'm sure it can be optimized further by taking the common case into account but we can also rewrite it in rust which allows us to reuse the read_analysis code. That might be preferable.
Assignee | ||
Comment 1•7 years ago
|
||
For the record: it currently takes ~2h15m to merge the m-c analysis files. From local experiments it seems like a good chunk of time is spent in the `sort` command that I pump the output of merge-analyses.py into. The purpose of the sort|uniq combo is to deduplicate the target lines, but we can do that using a hashset inside merge-analyses.py itself. And I don't think we need the output analysis sorted for any other reason except aesthetics. I'll see how much that helps.
Assignee | ||
Comment 2•7 years ago
|
||
Yeah that didn't help, ~2h34m with that change.
Assignee | ||
Comment 3•7 years ago
|
||
After a rewrite in rust it's down to ~22m or so. Still working out the bugs but that's much more promising.
Assignee | ||
Comment 4•7 years ago
|
||
A few tweaks later it's down to ~8 minutes! Granted, it's not exactly an apples-to-apples comparison since the output isn't exactly the same as the python version, but it's semantically equivalent.
Assignee | ||
Comment 5•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → kats
Assignee | ||
Comment 6•7 years ago
|
||
PRs merged
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•