Closed
Bug 467464
Opened 16 years ago
Closed 15 years ago
Remove support for loading XPT information from ZIPs and JARs
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: benjamin, Assigned: benjamin)
Details
Attachments
(1 file)
I've been examining the xpt loading time and process; I found to my surprise that we have code to load XPT files from JARs and ZIP files. I'm sure we don't actually use this code, and I bet that it doesn't work at all because of load ordering. As prep for futher work I'd like to just remove this code.
Assignee | ||
Comment 1•16 years ago
|
||
Attachment #350892 -
Flags: superreview?(shaver)
Attachment #350892 -
Flags: review?
so. i came to the conclusion that it didn't work last night.
however mobile is barking up a bad tree, and having this work seems like a better tree than the one they're barking up.
Assignee | ||
Comment 3•16 years ago
|
||
I don't think so... of course the current xpti.dat + xptiloader is inefficient, but I think we can make it efficient without resorting to a JAR abstraction.
Comment 4•15 years ago
|
||
What are the current plans for this?
Either we make libjar simpler by removing this XPT.zip support,
or we make XPT loading more efficient by packaging them into a 'zip' file?
Comment 5•15 years ago
|
||
We should remove it. All of our shipping applications link their XPT files into a single XPT anyway.
Comment 6•15 years ago
|
||
The review request in this bug lacks a requestee.
Comment 7•15 years ago
|
||
If needed and acceptable, I can do the review (as contributor to libjar and friends).
Some functions can probably be simplified, e.g.:
817 class xptiFileType
818 {
819 public:
820 enum Type {UNKNOWN = -1, XPT = 0, ZIP = 1 };
821
822 static Type GetType(const char* name);
823
824 static PRBool IsUnknown(const char* name)
825 {return GetType(name) == UNKNOWN;}
826
827 static PRBool IsXPT(const char* name)
828 {return GetType(name) == XPT;}
829
830 static PRBool IsZip(const char* name)
831 {return GetType(name) == ZIP;}
832 private:
833 xptiFileType(); // no implementation
834 };
For just doing IsXPT(filename), which is just strcasecmp(.xpt).
Updated•15 years ago
|
Attachment #350892 -
Flags: superreview?(shaver) → superreview+
Comment 8•15 years ago
|
||
Comment on attachment 350892 [details] [diff] [review]
Remove support for loading XPTs out of ZIPs and JARs, rev. 1
I'm fine with it from an architectural perspective.
Assignee | ||
Comment 9•15 years ago
|
||
This work has been subsumed into bug 568691.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
Comment 10•13 years ago
|
||
Comment on attachment 350892 [details] [diff] [review]
Remove support for loading XPTs out of ZIPs and JARs, rev. 1
Clearing review requests on a patch from bsmedberg and sr+'d by shaver.
Career limiting move, or cleaning up requests on old bugs? You be the judge. :) Please reopen or refile if this is still somehow relevant.
Attachment #350892 -
Flags: superreview+
Attachment #350892 -
Flags: review?
You need to log in
before you can comment on or make changes to this bug.
Description
•