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

Issue 1474603003: Move tar archive parsing to C++ (Closed)

Created:
5 years ago by zra
Modified:
5 years ago
CC:
reviews_dartlang.org, turnidge, rmacnak, Cutch, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Move tar archive parsing to C++ This gives a 30+ms speedup to startup. Also uses HashMap instead of Map for assets. BUG= R=iposva@google.com Committed: https://github.com/dart-lang/sdk/commit/5ee95b085fb8233e0df70baa7b5dced6718d9d92

Patch Set 1 #

Patch Set 2 : Remove <string> and <vector> #

Total comments: 13

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -5 lines) Patch
M runtime/bin/vmservice/vmservice_io.dart View 2 chunks +2 lines, -1 line 0 comments Download
M runtime/lib/vmservice.cc View 1 2 2 chunks +243 lines, -1 line 0 comments Download
M runtime/lib/vmservice_patch.dart View 1 2 2 chunks +20 lines, -1 line 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/vmservice/asset.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/vmservice/vmservice.dart View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
zra
5 years ago (2015-11-24 20:27:15 UTC) #3
zra
Removed <string> and <vector> as discussed offline.
5 years ago (2015-11-24 23:04:36 UTC) #4
Florian Schneider
How fast is startup with a gzipped archive?
5 years ago (2015-11-25 10:20:35 UTC) #6
Ivan Posva
Next round of comments. -Ivan https://codereview.chromium.org/1474603003/diff/20001/runtime/lib/vmservice.cc File runtime/lib/vmservice.cc (right): https://codereview.chromium.org/1474603003/diff/20001/runtime/lib/vmservice.cc#newcode155 runtime/lib/vmservice.cc:155: class ByteStream { How ...
5 years ago (2015-11-25 17:09:04 UTC) #7
Ivan Posva
-Ivan https://codereview.chromium.org/1474603003/diff/20001/runtime/lib/vmservice.cc File runtime/lib/vmservice.cc (right): https://codereview.chromium.org/1474603003/diff/20001/runtime/lib/vmservice.cc#newcode364 runtime/lib/vmservice.cc:364: uint8_t* data = reinterpret_cast<uint8_t*>(peer); You also should delete ...
5 years ago (2015-11-25 17:36:44 UTC) #8
zra
https://codereview.chromium.org/1474603003/diff/20001/runtime/lib/vmservice.cc File runtime/lib/vmservice.cc (right): https://codereview.chromium.org/1474603003/diff/20001/runtime/lib/vmservice.cc#newcode155 runtime/lib/vmservice.cc:155: class ByteStream { On 2015/11/25 17:09:04, Ivan Posva wrote: ...
5 years ago (2015-11-25 19:06:16 UTC) #9
zra
https://codereview.chromium.org/1474603003/diff/20001/runtime/lib/vmservice.cc File runtime/lib/vmservice.cc (right): https://codereview.chromium.org/1474603003/diff/20001/runtime/lib/vmservice.cc#newcode364 runtime/lib/vmservice.cc:364: uint8_t* data = reinterpret_cast<uint8_t*>(peer); On 2015/11/25 19:06:15, zra wrote: ...
5 years ago (2015-11-25 20:52:58 UTC) #10
Ivan Posva
LGTM -ip
5 years ago (2015-11-25 21:45:02 UTC) #11
zra
5 years ago (2015-11-25 22:39:23 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
5ee95b085fb8233e0df70baa7b5dced6718d9d92 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698