[erlang-questions] UDP receive performance
Fri Jun 15 11:49:35 CEST 2018
On Wed, Jun 13, 2018 at 11:08 PM Jonas Falkevik <
> I think I was able to reproduce this problem.
> And to me it looks like a bug.
> On my system the packet_inet_input is called but the recv call returns
> This isn’t freeing the buffer so the realloc (intended for fragments?) are
> Reallocating the same size buffer again.
> The below branch with the below change reduced the reallocs on my linux
Interesting... I wonder if maybe it wouldn't be better to solve this
problem in the code for realloc so that no copy is done when a realloc of
the same size if issued... that way we solve it in all places instead of
only in the inet_driver
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions