Closed Bug 478701 Opened 16 years ago Closed 16 years ago

Speed up startup by pre-warming xul.dll and common files

Categories

(Core :: General, defect)

ARM
Windows CE
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: vlad, Assigned: vlad)

Details

Attachments

(3 obsolete files)

With this patch, startup on my Windows CE 6 device goes from 60-120s to 5s. The patch would apply equally well to desktop and even to unixen, if the right code bits were used. We may be able to use nspr here as well, since I'm pretty sure it will have been loaded into memory already due to the ScopedLogging. Patch is just a proof-of-concept, but it's not far off from final. Note that I put it here, and not in XRE_main, so that we get a chance to do this preread as early as possible, before libxul bits are bound. Reading libxul + these 3 files took 1700ms total (1300ms for libxul, the rest for the others) from my somewhat slow flash card.
Attached patch better patch (obsolete) — Splinter Review
Ok, this actually grabs the binary location and finds xul.dll wherever it's at.
Attachment #362539 - Attachment is obsolete: true
Attachment #362809 - Flags: review?(doug.turner)
Attached patch er, real better patch (obsolete) — Splinter Review
Previous patch had some cruft in it.
Attachment #362809 - Attachment is obsolete: true
Attachment #362815 - Flags: review?(doug.turner)
Attachment #362809 - Flags: review?(doug.turner)
this doesn't actually help; I was fooled by some other tools causing a massive slowdown during startup. Alas.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Attachment #362815 - Attachment is obsolete: true
Attachment #362815 - Flags: review?(doug.turner)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: