Closed Bug 1111419 Opened 11 years ago Closed 11 years ago

dmd.py: add a cache for recordKeyParts

Categories

(Core :: DMD, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: n.nethercote, Assigned: n.nethercote)

Details

Attachments

(1 file)

dmd.py can be made to run faster.
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 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+
Nice improvement! There's a Python profiler that's pretty easy to use if you want to poke at that some more.
> 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).)
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.

Attachment

General

Created:
Updated:
Size: