]> granicus.if.org Git - curl/commit
multi: make curl_multi_info_read perform O(1)
authorDaniel Stenberg <daniel@haxx.se>
Sun, 8 Aug 2010 22:01:36 +0000 (00:01 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 15 Aug 2010 11:16:39 +0000 (13:16 +0200)
commit4d53dc5d8036c199a5eed6f1df4ae89d9f0a1857
tree5b1b983fa54d41dde7daabb06c81fe98f684a369
parent5907777153932e27805b192443dfe2845327a8c4
multi: make curl_multi_info_read perform O(1)

Instead of looping over all attached easy handles, this now keeps a list
of messages in the multi handle. It allows curl_multi_info_read() to
perform O(1) no matter how many easy handles that are handled. This is
of importance since this function may be polled very frequently by apps
using the multi interface.
lib/multi.c