tal: don't always allocate an array in the samba benchmark.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 14 Dec 2012 21:02:06 +0000 (07:32 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 14 Dec 2012 21:02:06 +0000 (07:32 +1030)
commit3710d28925e2960e1ee164df3b4ce920f0b27319
treebc22327b7604d051d32a69035491704cd091e5a5
parentdfaf896adb74ddf7271c9eee7330f2e3e009345b
tal: don't always allocate an array in the samba benchmark.

Since we added the length property, this penalizes us with an extra
alloc.  Unfortunately, we can't tell from the talloc.dump which are
array tallocs and which are single tallocs, but grepping the sources
gives a rate of 1 in 27.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/benchmark/samba-allocs.c