diff options
author | Mike Reed <reed@google.com> | 2016-12-15 14:11:37 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-15 19:49:31 +0000 |
commit | 9c457ad27b35022e36d62b6fe1a6aee530213cf6 (patch) | |
tree | c06396d0b044d2631b1685d3553406d8f48fd5ae /gm/lcdtext.cpp | |
parent | e4bf164225cc6d027566e9bfa0c8492629a6e090 (diff) |
speedup dynamicwstream
- move bytesWritten calculation to query the tail, allowing write() to be faster since it doesn't have to update anything extra per-write.
- enforce that all blocks are multiple-of-4 bytes big
- update the minimum block size to 4K
Before: 30ms
After: 23ms for non-4-bytes writes
13ms for 4-bytes writes
BUG=skia:
Change-Id: Id06ecad3b9fe426747e02accf1393595e3356ce3
Reviewed-on: https://skia-review.googlesource.com/6087
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'gm/lcdtext.cpp')
0 files changed, 0 insertions, 0 deletions