Closed Bug 49495 Opened 26 years ago Closed 26 years ago

BookmarkParser::ParseBookmark is slow

Categories

(SeaMonkey :: Bookmarks & History, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: mozilla)

Details

(Keywords: perf)

Attachments

(3 files)

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
Keywords: nsbeta3
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
Status: NEW → ASSIGNED
Chris (Waterson), care to give the attached code a review? :)
[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.]
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.
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)
Yep, that looks good.
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
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
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: