[Dnsmasq-discuss] [PATCH] Introduce whine_realloc
Petr Menšík
pemensik at redhat.com
Mon Jul 18 15:47:04 UTC 2022
Hi,
After reading the code creating servers.bind reply, I made a change to
use realloc call instead. It should allow saving some memory copying
when it is possible to just extend allocated memory size. I have
replaced few other uses as well. It is not yet tested much, but should
be safe enough.
It might also slightly improve performance handling sockets, because it
reduces copying done on socket listener adding.
Just improvement without adding any other feature.
Cheers,
Petr
--
Petr Menšík
Software Engineer, RHEL
Red Hat, http://www.redhat.com/
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Introduce-whine_realloc.patch
Type: text/x-patch
Size: 4870 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20220718/fb9153bd/attachment.bin>
More information about the Dnsmasq-discuss
mailing list