DescriptionOptimize ApiSignature.addBytes()
This makes the benchmark below to run in 100 ms, vs. 250 ms.
main() {
var bytes = new Uint8List(16);
for (int i = 0; i < 2000; i++) {
var timer = new Stopwatch()..start();
ApiSignature signature = new ApiSignature();
for (int i = 0; i < 1000; i++) {
for (int i = 0; i < 1500; i++) {
signature.addBytes(bytes);
}
}
timer.stop();
print('time: ${timer.elapsedMilliseconds}');
}
}
R=paulberry@google.com
BUG=
Committed: https://github.com/dart-lang/sdk/commit/e7f4816f9d037a0a57ff5b15d559c2d5e3dbb0e2
Patch Set 1 #
Messages
Total messages: 4 (1 generated)
|