Closed Bug 226511 Opened 21 years ago Closed 21 years ago

Speed up cookie deleting in the cookie manager by batching

Categories

(Core :: Networking: Cookies, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: mvl, Assigned: mvl)

References

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

Wehen deleting multiple cookies from the cookiemanager, for every deletion the entire list is loaded (and sorted) again. This is obviously very slow when deleting lots of cookies. Postponing the loading of the list will fix this. patch coming.
Attachment #136111 - Flags: superreview?(darin)
Attachment #136111 - Flags: review?(neil.parkwaycc.co.uk)
Isn't this bug a dup of 210465 ?
Keywords: perf
Changing summary from "Deleting lots of cookie from the cookie mananager is slow" to "Speed up cookie deleting in the cookie manager by batching".
Summary: Deleting lots of cookie from the cookie mananager is slow → Speed up cookie deleting in the cookie manager by batching
*** Bug 210465 has been marked as a duplicate of this bug. ***
If it's the actual sort that is slow, that should hopefully be improved by bug 224128. But batching deletes before redisplaying is probably a good idea.
i like this patch... it's something i can incorporate into my make-cookiemanager-not-suck patch as well :) i don't think it's the sorting that's slow - it's just reloading the list, and trying to do everything n times instead of once, that inherently makes it irritating. fwiw: + for (var c = deletedCookies.length - 1; c >= 0; c--) { you can make this just: for (var c = deletedCookies.length; c--; ) {
Attachment #136179 - Flags: superreview?(darin)
Attachment #136179 - Flags: review?(dwitte)
Comment on attachment 136179 [details] [diff] [review] Don't reload at all - we already delete the rows Yeah, this will work too. Thanks Neil.
Attachment #136179 - Flags: review?(dwitte) → review+
*** Bug 226625 has been marked as a duplicate of this bug. ***
Attachment #136111 - Attachment is obsolete: true
Attachment #136111 - Flags: superreview?(darin)
Attachment #136111 - Flags: review?(neil.parkwaycc.co.uk)
think its too late for 1.6 on this. a good one for 1.7
Flags: blocking1.6? → blocking1.6-
*** Bug 228541 has been marked as a duplicate of this bug. ***
*** Bug 228642 has been marked as a duplicate of this bug. ***
mvl: Bug 228642 says this causes a full hang (not just slow) in 1.6 beta. Do you think that is a dupe or a new problem?
*** Bug 232152 has been marked as a duplicate of this bug. ***
Comment on attachment 136179 [details] [diff] [review] Don't reload at all - we already delete the rows sr=darin
Attachment #136179 - Flags: superreview?(darin) → superreview+
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
*** Bug 238342 has been marked as a duplicate of this bug. ***
Verified FIXED using build 2004-07-25-09 on Windows XP. This has been quite zippy for a while now.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: