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

Issue 1739663003: Use TextDecoder instead of JSZip.utils.transformTo in GzipImporter (Closed)

Created:
4 years, 10 months ago by petrcermak
Modified:
4 years, 10 months ago
Reviewers:
nduca, Sami
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org, sunnyps
Base URL:
git@github.com:catapult-project/catapult.git@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Use TextDecoder instead of JSZip.utils.transformTo in GzipImporter Rationale: It avoids OOM and improves speed of gzip import (see the associated bug). Note: Although still marked as experimental, TextDecoder has been supported by Chrome since M38 (see https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder#Browser_compatibility). BUG=catapult:#2051 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/b891575cc61cf38e90daa508697b453241d48f6f

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add a jszip fallback and a test #

Patch Set 3 : Don't access TextDecoder through 'window' (d8) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -3 lines) Patch
M tracing/tracing/extras/importer/gzip_importer.html View 1 2 1 chunk +33 lines, -2 lines 0 comments Download
M tracing/tracing/extras/importer/gzip_importer_test.html View 1 2 2 chunks +40 lines, -1 line 0 comments Download

Messages

Total messages: 19 (8 generated)
petrcermak
Hi, Please review this patch. Thanks, Petr
4 years, 10 months ago (2016-02-25 14:24:09 UTC) #2
petrcermak
+cc sunnyps
4 years, 10 months ago (2016-02-25 14:25:21 UTC) #3
Sami
https://codereview.chromium.org/1739663003/diff/1/tracing/tracing/extras/importer/gzip_importer.html File tracing/tracing/extras/importer/gzip_importer.html (right): https://codereview.chromium.org/1739663003/diff/1/tracing/tracing/extras/importer/gzip_importer.html#newcode132 tracing/tracing/extras/importer/gzip_importer.html:132: var type = JSZip.utils.getTypeOf(data); Is it worth having a ...
4 years, 10 months ago (2016-02-25 14:44:54 UTC) #4
petrcermak
Thanks for your comment. PTAL. Petr https://codereview.chromium.org/1739663003/diff/1/tracing/tracing/extras/importer/gzip_importer.html File tracing/tracing/extras/importer/gzip_importer.html (right): https://codereview.chromium.org/1739663003/diff/1/tracing/tracing/extras/importer/gzip_importer.html#newcode132 tracing/tracing/extras/importer/gzip_importer.html:132: var type = ...
4 years, 10 months ago (2016-02-25 15:22:41 UTC) #5
Sami
lgtm. Thanks for adding the test too.
4 years, 10 months ago (2016-02-25 15:33:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1739663003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1739663003/20001
4 years, 10 months ago (2016-02-25 16:03:58 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Windows Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Windows%20Tryserver/builds/2038)
4 years, 10 months ago (2016-02-25 16:14:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1739663003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1739663003/20001
4 years, 10 months ago (2016-02-25 16:15:08 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Windows Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Windows%20Tryserver/builds/2039)
4 years, 10 months ago (2016-02-25 16:25:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1739663003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1739663003/40001
4 years, 10 months ago (2016-02-25 16:39:11 UTC) #17
commit-bot: I haz the power
4 years, 10 months ago (2016-02-25 16:50:48 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698