[1/2] ws2_32: Avoid memory allocation for simple sends

Austin English austinenglish at gmail.com
Tue May 20 22:34:52 CDT 2014


On Mon, May 19, 2014 at 2:16 PM, Bruno Jesus <00cpxxx at gmail.com> wrote:

> send() will ever use a single wsabuffer structure and most common
> applications use of WSASend() will also send a single buffer. Saves
> over 6 thousand calls to HeapAlloc in make test.
>

In (very non-scientific) timing runs, these two patches reduced valgrind
test time by ~20% (5 vs 4 minutes), thanks!

-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20140520/c1363107/attachment.html>


More information about the wine-devel mailing list