block: replace g_new0 with g_new for bottom half allocation.
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Dec 2014 15:10:00 +0000 (16:10 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 13 Jan 2015 11:47:56 +0000 (11:47 +0000)
commitee82310f8a6cc9ba9e8d1ac892f1a3cfc0debd8c
tree2e70198af3d637f0f9b99ecb0a99bff4867c5d42
parente012b78cf5bc42f20ef1a1f78383035f2293ceea
block: replace g_new0 with g_new for bottom half allocation.

This saves about 15% of the clock cycles spent on allocation.  Using the
slice allocator does not add a visible improvement; allocation is faster
than malloc, while freeing seems to be slower.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
async.c