Closed
Bug 30365
Opened 25 years ago
Closed 24 years ago
nsFileTransport::OpenInputStream takes 1.10 sec out of (9.9secs + dll loadtime)
Categories
(Core :: Networking, defect, P3)
Tracking
()
VERIFIED
INVALID
M18
People
(Reporter: dp, Assigned: warrensomebody)
References
Details
Attachments
(1 file)
881 bytes,
patch
|
Details | Diff | Splinter Review |
Function % #calls secs
=============================================================
nsFileTransport::OpenInputStream 100 51 1.10
nsLocalFile::Exists 89.89 51 0.99
PR_ExitMonitor 9.61 51 0.11
If I eliminate the Exists() call in nsFileTransport::OpenInputStream() I get
about a 2 to 3 sec improvement in startup. Dont know if my tools are lying.
Reporter | ||
Comment 1•25 years ago
|
||
warren, neeti has the fix in her tree and the timings. Hence I assigned the bug
to her. You need to decide if this is ok to do.
Blocks: 7251
Assignee | ||
Comment 2•25 years ago
|
||
I have a bug on this already, but can't seem to find it now. Let's see the fix.
Reassigning to Warren to decide if the fix is ok.
Assignee: neeti → warren
Assignee | ||
Comment 6•25 years ago
|
||
No way. I know this Exists call was added to fix another bug, I don't have time
to do the archeology now to figure out the bug #.
Assignee | ||
Updated•25 years ago
|
Target Milestone: --- → M17
Assignee | ||
Comment 8•24 years ago
|
||
This code has completely changed now. OpenInputStream now uses the nsIStreamIO's
GetInputStream method. There still may be a problem here since
nsFileIO::GetInputStream calls IsDirectory (which I believe also does a stat),
but that can't be avoided.
Marking invalid now.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•