DescriptionAdd 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
Committed: https://code.google.com/p/skia/source/detail?r=11414
Patch Set 1 #Patch Set 2 : add bench and test #
Total comments: 1
Patch Set 3 : bench now does create+free, create+read+free, create+write+free, create+read+write+free #Patch Set 4 : update API #Patch Set 5 : fix size_t #
Total comments: 2
Patch Set 6 : use sk_out_of_memory #
Messages
Total messages: 8 (0 generated)
|