OSDN Git Service

Remove preemptive allocations.
authorPierre Habouzit <madcoder@debian.org>
Sun, 16 Sep 2007 08:19:01 +0000 (10:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2007 00:30:04 +0000 (17:30 -0700)
commit8b6087fb25068d6af927f112a93dc056930f3108
tree425bb358dbe7c46a5980ae4a1be4f63a03b1e783
parenta08f23ab3eab67aac7163a284038f45fa99ef66f
Remove preemptive allocations.

Careful profiling shows that we spend more time guessing what pattern
allocation will have, whereas we can delay it only at the point where
add_rfc2047 will be used and don't allocate huge memory area for the many
cases where it's not.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c