Closed
Bug 49495
Opened 26 years ago
Closed 26 years ago
BookmarkParser::ParseBookmark is slow
Categories
(SeaMonkey :: Bookmarks & History, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: dbaron, Assigned: mozilla)
Details
(Keywords: perf)
Attachments
(3 files)
|
146.12 KB,
text/plain
|
Details | |
|
145.50 KB,
text/plain
|
Details | |
|
36.82 KB,
patch
|
Details | Diff | Splinter Review |
I have a bookmarks file that is 471 lines long. During startup,
BookmarkParser::ParseBookmark takes up 49 milliseconds (jprof time, which might
be a little slower than real time) on a PII-233. This does not bode well for
people with large bookmarks files.
Most of the time (4 milliseconds directly and 31 within ParseAttribute) is spent
in nsString::Find.
The parsing would probably be sped up significantly if it read in the order of
the file rather than searching the line for each possible attribute.
TESTING ON: Linux mozilla, optimized non-debug, 2000-08-17 tree closure
Comment 1•26 years ago
|
||
this is the sort of thing we're tryingto fix for beta3 no? Adding nsbeta3 nomination.
Slamm, is this sort of thing rjc's bag?
nav triage team
this is backend issue, reassigning to rjc. There are various performance issues
with bookmarks and rdf performance, y'all decide if you should plus or not.
Assignee: slamm → rjc
| Assignee | ||
Comment 3•26 years ago
|
||
| Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 4•26 years ago
|
||
Chris (Waterson), care to give the attached code a review? :)
| Assignee | ||
Comment 5•26 years ago
|
||
[Trivia: The ParseAttribute() method is no longer used and can be removed from
the attached file... I forgot to do so before attaching it to this bug.]
| Assignee | ||
Comment 6•26 years ago
|
||
| Assignee | ||
Comment 7•26 years ago
|
||
Comment 8•26 years ago
|
||
These changes look good. Please try running them with XPCOM_MEM_BLOAT_LOG turned
on to make sure that you don't introduce any leaks. Do that, and r=waterson.
| Assignee | ||
Comment 9•26 years ago
|
||
Here are the #s... if I'm reading them correctly, then things are OK. Chris,
care to verify?
Before changes:
0 TOTAL 27 2716 902072 100 (
7428.60 +/- 5551.11) 2224323 807 ( 3395.06 +/- 4053.86)
After changes:
0 TOTAL 27 2672 901788 99 (
7382.44 +/- 5493.78) 2233152 794 ( 3461.93 +/- 4175.23)
Comment 10•26 years ago
|
||
Yep, that looks good.
| Assignee | ||
Comment 11•26 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Comment 12•23 years ago
|
||
mass-verifying claudius' Fixed bugs which haven't changed since 2001.12.31.
if you think this particular bug is not fixed, please make sure of the following
before reopening:
a. retest with a *recent* trunk build.
b. query bugzilla to see if there's an existing, open bug (new, reopened,
assigned) that covers your issue.
c. if this does need to be reopened, make sure there are specific steps to
reproduce (unless already provided and up-to-date).
thanks!
[set your search string in mail to "AmbassadorKoshNaranek" to filter out these
messages.]
Status: RESOLVED → VERIFIED
Updated•22 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•