From 4073cd83b2f3bcf93f1ce7f5d567d22175bad9af Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Fri, 30 Mar 2018 18:33:52 +0300 Subject: cookies: when reading from a file, only remove_expired once This drops the cookie load time for 8k cookies from 178ms to 15ms. Closes #2441 --- lib/cookie.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/cookie.h') diff --git a/lib/cookie.h b/lib/cookie.h index cb50b71c6..5342d528c 100644 --- a/lib/cookie.h +++ b/lib/cookie.h @@ -80,7 +80,8 @@ struct Curl_easy; */ struct Cookie *Curl_cookie_add(struct Curl_easy *data, - struct CookieInfo *, bool header, char *lineptr, + struct CookieInfo *, bool header, bool noexpiry, + char *lineptr, const char *domain, const char *path); struct Cookie *Curl_cookie_getlist(struct CookieInfo *, const char *, -- cgit v1.2.3