Closed Bug 27416 Opened 26 years ago Closed 16 years ago

nsIFile performance needs evaluation

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: sfraser_bugs, Unassigned)

References

Details

(Keywords: perf)

I suspect that we lost a number of performance enhancements in the move from nsFileSpec to nsIFile. We need to evaluate nsIFile for performance, particularly on Mac.
Keywords: perf
*** Bug 27079 has been marked as a duplicate of this bug. ***
Target Milestone: M14
later.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → LATER
Why is this latered? We have serious startup performance problems, some of which may be relate to the transition to nsIFile from nsFileSpec. We have done *no* performance evaluation of the various nsIFile implementations on each platform. Reopening.
Status: RESOLVED → REOPENED
Resolution: LATER → ---
It was latered based on my evaluation of my task load. What "performance enhancments" do you suspect were lost?
Status: REOPENED → ASSIGNED
Target Milestone: M14 → M18
Well, in the Mac implementation, I suspect we are calling ResolveAlias and PBGetCatInfo multiple times per file, for example. We did suffer a significant slowdown in startup performance around the time that nsIFile landed, so I do think that it is important to look at this. If you like, file separate bugs for each platform, and then platform gurus can look at them.
I think that this is a mac-only problem as on windows I have made sure that resolving shortcuts are only called when a file does not exists and you call stat. For example, when you are building a path a/b/c/d, the resolving shortcut code will never be hit if a, b, and c exists. As for unix, symlink resolution is done by the kernl.
QA Contact: leger → kandrot
M18 is an old milestone, moving forward in time.
Keywords: mozilla1.0
Target Milestone: M18 → mozilla0.9
removing milestone.
Target Milestone: mozilla0.9 → ---
waterson, is there anyone on your team that can investigate the impl of nsLocalFile?
dougt: is this the right milestone for this work? pls. retarget as necessary.
Target Milestone: --- → mozilla0.9
untargeting as I don;t have the cycles.
Target Milestone: mozilla0.9 → ---
helpwanted, right? /be
Keywords: helpwanted
cathleen, I am told that you have people that could look at this? if not assign it back to me.
Assignee: dougt → cathleen
Status: ASSIGNED → NEW
I was wondering if you can help take a look... :-) So, currently, there are a few things that raised the concers about nsIFiles during the performance meeting. We don't have any quantified data, but people have heard that switching from nsFileSpec to nsIFiles, there are some performance issues. Also, bug 71447 which we try to open 34 RDF files that don't exist takes 4% of startup time, increase the awareness of nsIFiles perforance. If you can give me some directions to get me started, I'd be glad to do some investigations into it. (I also dont have a Mac, so I need some help from mac people too!)
reassign back to you for now... :-)
Assignee: cathleen → dougt
Depends on: 27857
Blocks: 71861
lets put this on kandrot's list
Assignee: dougt → kandrot
kandrot says he's swamped, maybe try the original author, sdagley :)
Assignee: kandrot → sdagley
Target Milestone: --- → mozilla0.9.2
Moving to 0.9.3.
Target Milestone: mozilla0.9.2 → mozilla0.9.3
evaluation won't finish tonight...
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Target Milestone: mozilla0.9.5 → mozilla1.0
I can take performance evaluation for unix. I have already started writing a test suite for nsIFIle. Taking bug. --pete
Assignee: sdagley → petejc
Keywords: helpwanted
Status: NEW → ASSIGNED
This bug is targeted at a Mac classic platform/OS, which is no longer supported by mozilla.org. Please re-target it to another platform/OS if this bug applies there as well or resolve this bug. I will resolve this bug as WONTFIX in four weeks if no action has been taken. To filter this and similar messages out, please filter for "mac_cla_reorg".
OS: Mac System 8.5 → All
Hardware: Macintosh → All
Target Milestone: mozilla1.0 → ---
QA Contact: kandrot → pete
QA Contact: pete → xpcom
This bug hasen't been touched for years and is clearly unowned. Moving back to default assignee/QA so that people, who are watching those can accurately triage this bug. Also resetting Priority, Target Milestone, Status Whiteboard and Status.
Assignee: pete → nobody
Status: ASSIGNED → NEW
Priority: P3 → --
Status: NEW → RESOLVED
Closed: 26 years ago16 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.