diff options
author | Lauri Kasanen <cand@gmx.com> | 2018-03-30 18:33:52 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-04-02 10:40:32 +0200 |
commit | 4073cd83b2f3bcf93f1ce7f5d567d22175bad9af (patch) | |
tree | eeee27d641e37738414d87e7bf1a716734b9776a /lib/cookie.h | |
parent | 28faaacee287b019bcf2961da3bf2f91d331bcbd (diff) | |
download | curl-4073cd83b2f3bcf93f1ce7f5d567d22175bad9af.tar.gz |
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
Diffstat (limited to 'lib/cookie.h')
-rw-r--r-- | lib/cookie.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 *, |