[Dnsmasq-discuss] [PATCH] Introduce whine_realloc

Simon Kelley simon at thekelleys.org.uk
Fri Aug 12 16:29:27 UTC 2022


Patch applied, and a subsequent one to simplify  poll.c that it suggested.

Simon.


On 18/07/2022 16:47, Petr Menšík wrote:
> 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
> 
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss



More information about the Dnsmasq-discuss mailing list