mirror of
https://github.com/curl/curl.git
synced 2026-08-26 21:44:10 +03:00
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
This commit is contained in:
parent
28faaacee2
commit
4073cd83b2
4 changed files with 12 additions and 6 deletions
|
|
@ -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 *,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue