mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-03 20:15:53 +00:00
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.