]> git.ipfire.org Git - thirdparty/curl.git/commit
multi: reuse WinSock events variable in Curl_multi_wait
authorMarc Hoersken <info@marc-hoersken.de>
Sat, 12 Sep 2020 19:59:26 +0000 (21:59 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Thu, 17 Sep 2020 05:40:49 +0000 (07:40 +0200)
commit40d67da7caaef4c23399306cbcac7883a925ce6f
treebf859e6f6133c01bc86b6ec6866580eb8e5c50cd
parentaf09599958bfdcdc3136da1dc8a7b2bfc9f108c4
multi: reuse WinSock events variable in Curl_multi_wait

Since the struct is quite large (1 long and 10 ints) we
declare it once at the beginning of the function instead
of multiple times inside loops to avoid stack movements.

Reviewed-by: Viktor Szakats
Reviewed-by: Daniel Stenberg
Closes #5886
lib/multi.c