dynamic-string: Optimize ds_put_char().
authorBen Pfaff <blp@nicira.com>
Mon, 3 May 2010 19:30:37 +0000 (12:30 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 5 May 2010 21:00:50 +0000 (14:00 -0700)
commit36c501fe7888bce761b5527dbd2ac7234543aef1
treecec8aa175f7913a305810e1c11c2b8890bb9eb89
parent836fad5e1ae4316752150fcdfba9afbf8d5f5801
dynamic-string: Optimize ds_put_char().

A qprof profile showed ds_put_char() and ds_put_uninit() as 4% of total
runtime.  This commit inlines the common case, which reduces them to 1%
total.
lib/dynamic-string.c
lib/dynamic-string.h