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)
Core
Networking: Cookies
Tracking
()
VERIFIED
FIXED
People
(Reporter: mvl, Assigned: mvl)
References
Details
(Keywords: perf)
Attachments
(1 file, 1 obsolete file)
1.97 KB,
patch
|
dwitte
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #136111 -
Flags: superreview?(darin)
Attachment #136111 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 2•21 years ago
|
||
Isn't this bug a dup of 210465 ?
Comment 3•21 years ago
|
||
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
Comment 4•21 years ago
|
||
*** Bug 210465 has been marked as a duplicate of this bug. ***
Comment 5•21 years ago
|
||
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.
Comment 6•21 years ago
|
||
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--; ) {
Comment 7•21 years ago
|
||
Updated•21 years ago
|
Attachment #136179 -
Flags: superreview?(darin)
Attachment #136179 -
Flags: review?(dwitte)
Assignee | ||
Comment 8•21 years ago
|
||
Comment on attachment 136179 [details] [diff] [review]
Don't reload at all - we already delete the rows
Yeah, this will work too. Thanks Neil.
Updated•21 years ago
|
Attachment #136179 -
Flags: review?(dwitte) → review+
Comment 9•21 years ago
|
||
*** Bug 226625 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Flags: blocking1.6?
Assignee | ||
Updated•21 years ago
|
Attachment #136111 -
Attachment is obsolete: true
Attachment #136111 -
Flags: superreview?(darin)
Attachment #136111 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 10•21 years ago
|
||
think its too late for 1.6 on this. a good one for 1.7
Flags: blocking1.6? → blocking1.6-
Comment 11•21 years ago
|
||
*** Bug 228541 has been marked as a duplicate of this bug. ***
Comment 12•21 years ago
|
||
*** Bug 228642 has been marked as a duplicate of this bug. ***
Comment 13•21 years ago
|
||
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?
Assignee | ||
Comment 14•21 years ago
|
||
*** Bug 232152 has been marked as a duplicate of this bug. ***
Comment 15•21 years ago
|
||
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+
Comment 16•21 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 17•21 years ago
|
||
*** 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.
Description
•