]> granicus.if.org Git - curl/commit
curl: speed up handling of many URLs
authorDaniel Stenberg <daniel@haxx.se>
Sat, 4 Nov 2017 11:56:30 +0000 (12:56 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 4 Nov 2017 19:56:26 +0000 (20:56 +0100)
commitee8016b3de0b0e3e9a352a1123c5e6272848aa55
tree65362606421074a0e5fc9582175afba34e47e5a6
parent90abb74ff0e3134d8647722cee36b1815c14143d
curl: speed up handling of many URLs

By properly keeping track of the last entry in the list of URLs/uploads
to handle, curl now avoids many meaningless traverses of the list which
speeds up many-URL handling *MASSIVELY* (several magnitudes on 100K
URLs).

Added test 1291, to verify that it doesn't take ages - but we don't have
any detection of "too slow" command in the test suite.

Reported-by: arainchik on github
Fixes #1959
Closes #2052
src/tool_cfgable.h
src/tool_getparam.c
tests/data/Makefile.inc
tests/data/test1291 [new file with mode: 0644]