Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Issue 2174543002: Optimize JSON dump in telemetry. (Closed)

Created:
4 years, 5 months ago by alexandermont
Modified:
4 years, 5 months ago
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org
Base URL:
git@github.com:catapult-project/catapult@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Optimize JSON dump in telemetry. This change makes the JSON dump go much faster (change from about 8.5s to about 1.4s for a 330000-event trace) BUG=chromium:624164 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/07aa51b63e8c04002a8696e63beacff9a8f2fbfc

Patch Set 1 #

Total comments: 1

Patch Set 2 : add comment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M telemetry/telemetry/value/trace.py View 1 1 chunk +3 lines, -1 line 1 comment Download

Messages

Total messages: 22 (9 generated)
alexandermont
4 years, 5 months ago (2016-07-21 22:33:28 UTC) #2
Zhen Wang
OoO learnt something new... lgtm
4 years, 5 months ago (2016-07-21 22:46:05 UTC) #3
alexandermont
4 years, 5 months ago (2016-07-21 23:01:43 UTC) #5
aschulman
On 2016/07/21 23:01:43, alexandermont wrote: my only concern would be how this will tax memory. ...
4 years, 5 months ago (2016-07-21 23:13:32 UTC) #6
sullivan
https://codereview.chromium.org/2174543002/diff/1/telemetry/telemetry/value/trace.py File telemetry/telemetry/value/trace.py (right): https://codereview.chromium.org/2174543002/diff/1/telemetry/telemetry/value/trace.py#newcode52 telemetry/telemetry/value/trace.py:52: fp.write(json.dumps(trace)) If the other comments on the CL are ...
4 years, 5 months ago (2016-07-22 12:37:53 UTC) #8
rnephew (Reviews Here)
Im not sure the best way to profile memory usage on python, but a quick ...
4 years, 5 months ago (2016-07-22 16:30:55 UTC) #9
aschulman
On 2016/07/22 16:30:55, rnephew (Reviews Here) wrote: > Im not sure the best way to ...
4 years, 5 months ago (2016-07-22 16:42:59 UTC) #10
alexandermont
4 years, 5 months ago (2016-07-22 18:29:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2174543002/20001
4 years, 5 months ago (2016-07-22 18:30:02 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/07aa51b63e8c04002a8696e63beacff9a8f2fbfc
4 years, 5 months ago (2016-07-22 18:51:30 UTC) #17
aschulman
On 2016/07/22 18:51:30, commit-bot: I haz the power wrote: > Committed patchset #2 (id:20001) as ...
4 years, 5 months ago (2016-07-22 21:36:40 UTC) #18
nednguyen
https://codereview.chromium.org/2174543002/diff/20001/telemetry/telemetry/value/trace.py File telemetry/telemetry/value/trace.py (right): https://codereview.chromium.org/2174543002/diff/20001/telemetry/telemetry/value/trace.py#newcode53 telemetry/telemetry/value/trace.py:53: # ~5x faster than using json.dump(). Event better if ...
4 years, 5 months ago (2016-07-22 22:56:17 UTC) #21
rnephew (Reviews Here)
4 years, 5 months ago (2016-07-25 17:48:50 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2177323002/ by rnephew@chromium.org.

The reason for reverting is:
https://github.com/catapult-project/catapult/issues/2535.

Powered by Google App Engine
This is Rietveld 408576698