[OPEN-ILS-DEV] PATCH: utils.c (faster buffer_add_char)

2007-12-09 Thread Scott McKellar
This patch provides a faster implementation of buffer_add_char(). It also replaces malloc() with calloc() in safe_calloc(), and removes the memset(). The behavior should be identical, but there is a chance that calloc() will be trivially more efficient, depending on how the standard library is

Re: [OPEN-ILS-DEV] PATCH: utils.c (faster buffer_add_char)

2007-12-09 Thread Mike Rylander
On Dec 9, 2007 7:04 PM, Scott McKellar [EMAIL PROTECTED] wrote: This patch provides a faster implementation of buffer_add_char(). Applied. [snip] I have three further suggestions for the handling of growing_buffers. I didn't want to make these changes on my own without discussion. 1.