Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWebView: Reduce overhead of updating a cookie's last access time
Getting a document's cookie value currently involves: 1. Doing a large SELECT statement and filtering the results to match the document and some query parameters based on the cookie RFC. 2. For every cookie selected this way, doing an UPDATE to set its last access time. 3. For every UPDATE, do a DELETE to remove all expired cookies. There's no need to perform cookie expiration for every UPDATE. Instead, we can do the expiration once after all the UPDATEs are complete. This reduces time spent waiting for cookies on https://twinings.co.uk from ~1.9s to ~1.3s on my machine.
- Loading branch information