The default bug view has changed. See this FAQ.

evaluate performance of mozilla cookies implementation




Networking: HTTP
16 years ago
3 years ago


(Reporter: Darin Fisher, Unassigned)




Firefox Tracking Flags

(Not tracked)




16 years ago
evaluate performance of mozilla cookies implementation.  in particular, i'd like
to determine how expensive it is to be calling into the cookie manager for every
http request/response.


16 years ago
Priority: -- → P3
Target Milestone: --- → mozilla0.9.6

Comment 1

16 years ago
here's some results using a linux commercial build from 2001/10/01:

Test id: 3BC15AD47D
Avg. Median : 1060 msec     Minimum     : 252 msec
Average     : 1092 msec     Maximum     : 3812 msec

Test id: 3BC15CFDD8
Avg. Median : 1027 msec     Minimum     : 247 msec
Average     : 1051 msec     Maximum     : 3826 msec

this amounts to a 3% performance difference, and i think it means that we
should not be sending notifications to the cookie manager unless we actually
have cookies to report.  see bug 96178 for existing plans to make this possible.
Keywords: perf


16 years ago
Blocks: 95314


16 years ago
Target Milestone: mozilla0.9.6 → mozilla0.9.7

Comment 2

16 years ago
morse: this bug might interest you.

Comment 3

16 years ago
something along the lines of bug 96178 might help.

Comment 4

16 years ago
-> 0.9.8 (perhaps even later)
Target Milestone: mozilla0.9.7 → mozilla0.9.8

Comment 5

16 years ago
unlikely to get around to doing anything about this in the mozilla1.0 timeframe.

-> future
Target Milestone: mozilla0.9.8 → Future

Comment 6

14 years ago
Is this bug still relevent now that the cookie code is being rewritten?

Comment 7

14 years ago
sort of.. this is more of a meta bug than anything else.  the point of this bug
was to determine why the presence of the cookie DLL was so costly.  we may or
may not have addressed all of that with the cookie rewrite.  i doubt it since we
didn't see much of any change in Tp with the current cookie changes :-/

Comment 8

14 years ago
ah, thx for cc'ing me darin.

"cookies" and "performance" do not go in the same sentence, unless there's a
strong negation present. the rewrite has not done anything to address
performance yet (apart from micro optimizations and other fun stuff).

the perf improvements will be coming up shortly. phase 3 sets the stage for
this, and I may introduce arenas there (they're so easy) so that'll give us some
malloc bloat + perf wins.

the really big win will come when
a) we move to hashes (phase 4, dare i mention 1.4b in this sentence? ;)

darin: i've actually just finished coding up the hash conversion. so do let me
know if there's a chance of it being on the radar for 1.4b, and i'll push it
through ASAP. not sure on this one because although it's a conceptually simple
change, it is a big patch and i'm not sure what your take will be for 1.4b.

b) we integrate cookies into necko and kill that infernal nsCookieHTTPNotify.

Comment 9

13 years ago
dwitte: any update?
QA Contact: tever → benc


11 years ago
Assignee: darin → nobody
QA Contact: benc → networking.http
Target Milestone: Future → ---
Should this bug still be opened?

Comment 11

6 years ago
Nope. Cookies are fast now!
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.