commit | f28df04cca6ac515f53f7db20e8bd6544931aad8 | [log] [tgz] |
---|---|---|
author | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri Sep 20 14:31:45 2013 +0000 |
committer | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri Sep 20 14:31:45 2013 +0000 |
tree | 72bbab8b675e239a93b77066a4f03ede4d393688 | |
parent | dca382a08f8b5de96b6c4a00a7ab48a4c72431c8 [diff] |
Add sk_calloc. Remove SkMemory_stdlib, which seems unused. I'm seeing basically no difference between malloc + bzero and calloc on my desktop, but on a Galaxy Nexus calloc is never slower, and significantly faster once the allocation size becomes large, both for allocation and for _reading_. BUG=skia:1662 R=reed@google.com Review URL: https://codereview.chromium.org/24251008 git-svn-id: http://skia.googlecode.com/svn/trunk/gyp@11414 2bbb7eff-a529-9590-31e7-b0007b416f81