Re: calloc -> malloc in get_data() and get_string()

2015-11-19 Thread Todd C. Miller
On Wed, 18 Nov 2015 22:10:05 -0500, Michael McConville wrote: > Ted Unangst wrote: > > Joerg Jung wrote: > > > > Michael McConville wrote: > > > > Relayd, httpd, and ntpd define the functions get_data() and > > > > get_string(). Both call calloc and then immediately memcpy. > > > > Calloc's zeroin

Re: calloc -> malloc in get_data() and get_string()

2015-11-18 Thread Michael McConville
Ted Unangst wrote: > Joerg Jung wrote: > > > Michael McConville wrote: > > > Relayd, httpd, and ntpd define the functions get_data() and > > > get_string(). Both call calloc and then immediately memcpy. > > > Calloc's zeroing isn't optimized out. These functions are called > > > in network data pat

Re: calloc -> malloc in get_data() and get_string()

2015-10-29 Thread Michael McConville
Sebastian Benoit wrote: > Michael McConville(mm...@mykolab.com) on 2015.10.28 12:05:24 -0400: > > Relayd, httpd, and ntpd define the functions get_data() and > > get_string(). Both call calloc and then immediately memcpy. Calloc's > > zeroing isn't optimized out. These functions are called in netwo

Re: calloc -> malloc in get_data() and get_string()

2015-10-29 Thread Sebastian Benoit
Michael McConville(mm...@mykolab.com) on 2015.10.28 12:05:24 -0400: > Relayd, httpd, and ntpd define the functions get_data() and > get_string(). Both call calloc and then immediately memcpy. Calloc's > zeroing isn't optimized out. These functions are called in network data > paths in at least a co

Re: calloc -> malloc in get_data() and get_string()

2015-10-28 Thread Ted Unangst
Joerg Jung wrote: > > > > Am 28.10.2015 um 17:05 schrieb Michael McConville : > > > > Relayd, httpd, and ntpd define the functions get_data() and > > get_string(). Both call calloc and then immediately memcpy. Calloc's > > zeroing isn't optimized out. These functions are called in network data >

Re: calloc -> malloc in get_data() and get_string()

2015-10-28 Thread Michael McConville
Joerg Jung wrote: > > > > Michael McConville wrote: > > > > Relayd, httpd, and ntpd define the functions get_data() and > > get_string(). Both call calloc and then immediately memcpy. Calloc's > > zeroing isn't optimized out. These functions are called in network data > > paths in at least a coup

Re: calloc -> malloc in get_data() and get_string()

2015-10-28 Thread Joerg Jung
> Am 28.10.2015 um 17:05 schrieb Michael McConville : > > Relayd, httpd, and ntpd define the functions get_data() and > get_string(). Both call calloc and then immediately memcpy. Calloc's > zeroing isn't optimized out. These functions are called in network data > paths in at least a couple plac

calloc -> malloc in get_data() and get_string()

2015-10-28 Thread Michael McConville
Relayd, httpd, and ntpd define the functions get_data() and get_string(). Both call calloc and then immediately memcpy. Calloc's zeroing isn't optimized out. These functions are called in network data paths in at least a couple places, so all this extra writing could have a meaningful performance i