Closed
Bug 1111419
Opened 11 years ago
Closed 11 years ago
dmd.py: add a cache for recordKeyParts
Categories
(Core :: DMD, defect)
Core
DMD
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: n.nethercote, Assigned: n.nethercote)
Details
Attachments
(1 file)
|
2.92 KB,
patch
|
mccr8
:
review+
|
Details | Diff | Splinter Review |
dmd.py can be made to run faster.
| Assignee | ||
Comment 1•11 years ago
|
||
This reduces the runtime on my Linux machine for one large DMD output file from
235 seconds to 105 seconds.
Attachment #8536287 -
Flags: review?(continuation)
Comment 2•11 years ago
|
||
Comment on attachment 8536287 [details] [diff] [review]
dmd.py: add a cache for recordKeyParts
Review of attachment 8536287 [details] [diff] [review]:
-----------------------------------------------------------------
::: memory/replace/dmd/dmd.py
@@ +367,5 @@
> # equivalent because the untrimmed frame descriptions (D1 and D2)
> # match.
> + #
> + # Having said all that, for a single invocation of dmd.py on a single
> + # DMD file a single frameKey value, the record key will always be the
This looks like it is missing a word. "with a single frameKey value" or something? Maybe I'm just misreading it.
Attachment #8536287 -
Flags: review?(continuation) → review+
Comment 3•11 years ago
|
||
Nice improvement! There's a Python profiler that's pretty easy to use if you want to poke at that some more.
| Assignee | ||
Comment 4•11 years ago
|
||
> There's a Python profiler that's pretty easy to use if
> you want to poke at that some more.
That's what I used to make this improvement :)
Much of the remaining time is taken up by (a) stack fixing, (b) gunzipping/gzipping, and (c) JSON reading, all of which are difficult to improve because they're all code outside the script. (Well, you can run with --no-fix-stacks when appropriate to avoid (a), and you can unzip your file manually to avoid (b).)
| Assignee | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in
before you can comment on or make changes to this bug.
Description
•