Closed
Bug 156567
Opened 23 years ago
Closed 22 years ago
combine txtsvc in to editor dll
Categories
(Core :: DOM: Editor, defect, P2)
Tracking
()
VERIFIED
FIXED
mozilla1.2alpha
People
(Reporter: alecf, Assigned: alecf)
References
Details
(Whiteboard: fix in hand)
Attachments
(1 file, 1 obsolete file)
9.23 KB,
patch
|
akkzilla
:
review+
kinmoz
:
superreview+
|
Details | Diff | Splinter Review |
it now looks like after the latest find cleanup, the only consumer of txtsvc is
editor itself. I think we should combine the tiny dll into the main editor dll.
The DLL itself is only 27k (windows) so personally I think its worth simply
rolling this into editor - we'll save the overhead of having an additional DLL.
(my primary concern here is embedding footprint)
Assignee | ||
Comment 1•23 years ago
|
||
assigning to myself now that I know the default owner
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•23 years ago
|
||
kin, akkana, any objections here? Otherwise I'm just going to go ahead and do
the work.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.2alpha
Comment 4•23 years ago
|
||
Have we given up on any other parts of the product ever using the transaction
manager? Originally it was thought that other consumers, like mail, might want
to use this for undo/redo.
Mail does use the Transaction manager (for non-editor related tasks). Other
non-mozilla projects do also.
alecf, I'm not sure if you're lumping the Netscape Spellchecker (in the
commercial tree) into the editor category or not, but it also uses the txtsvc
module, so does the other non-netscape spellchecker that someone is working on
at mozdev.
At some point we want to revamp the spellchecker api's to have a controller and
a backend. I'm thinking we'll move a way from using the txtsvc module for the
backend rewrite in favor of leveraging some of the new find work, since it can
handle ranges, etc.
I'm not sure it's worth all the trouble right now?
Assignee | ||
Comment 6•23 years ago
|
||
akkana: txmgr != txtsvc
As for txtsvc, its worth it to me because it reduces the number (and total size)
of DLLs that embedding needs - part of a larger effort to reduce the number of
DLLs required for embedding. I'm willing to do the work, I just want to make
sure the editor team doesn't object.
The advantage of keeping it a seperate DLL is that people don't need to include
it if they don't need it - but at 27k, I think we're better off just rolling it
into editor.
As for other consumers of txtsvc, that just makes it all the more attractive to
lump it into the editor dll..(i.e. more consumers means less incentive to keep
it optional)
Assignee | ||
Comment 7•22 years ago
|
||
imagine there is a similar patch to mac :)
Assignee | ||
Comment 8•22 years ago
|
||
Ok, this is a better patch
what's going on here:
1) txtsvc is becoming a static library on windows and unix
(on mac it is going away entirely)
2) we're linking this static library in with editor, and adding it to the
factory
(on mac I'm just adding it to the editor project directly)
3) xpinstall is not only no longer installing it, but also deleting the old dll
if it is installed.
Looking for reviewers.
Attachment #96222 -
Attachment is obsolete: true
Assignee | ||
Updated•22 years ago
|
Whiteboard: fix in hand
Comment 9•22 years ago
|
||
Comment on attachment 96225 [details] [diff] [review]
roll txtsvc into editor, with installer patches
This is fine with me as long as kin approves it. I have two comments on the
patch:
1. If txtsvcs is part of libeditor, I'd be happier seeing the directory moved
under libeditor as well, rather than libeditor/build building a directory
outside of itself. Sorry, I know it's a pain to move directories in cvs, but
it would make it easier for future editor maintainers.
2. Please cvs remove any files that become obsolete (nsTextServiceFactory.*
should go away now, no?)
Otherwise r=akkana.
Attachment #96225 -
Flags: review+
Assignee | ||
Comment 10•22 years ago
|
||
akkana: I'll ask leaf to move the directories, and I'll definitely cvs remove
the files that are no longer used - I hate tree clutter too :)
Comment 11•22 years ago
|
||
Comment on attachment 96225 [details] [diff] [review]
roll txtsvc into editor, with installer patches
sr=kin@netscape.com
Personally, I think moving the dir is a waste of time, since we want txtsvc to
eventually go away in favor of a spellchecker rewrite ... is anyone really
going to maintain txtsvc aside from me?
That said, it's up to you guys, as long as it's a dir *copy* so we can retain
the CVS info of each file.
Thanks for doing this Alec.
Attachment #96225 -
Flags: superreview+
Comment 12•22 years ago
|
||
If Kin doesn't think we need to move the directory, I certainly won't insist on
it (though I'd still slightly prefer it).
Assignee | ||
Comment 13•22 years ago
|
||
how about I go ahead and land when the tree opens, and when leaf moves it, I'll
later move stuff around, r=akkana, sr=kin...
Comment 14•22 years ago
|
||
That's fine with me.
Comment 15•22 years ago
|
||
Alec,
this checkin is perhaps the cause for the performance regression in bug 164209.
(3% startup increase).
I've had a look at the patch and the only thing I found strange was the change
in editor/libeditor/build/nsEditorRegistration.cpp;1.24
http://lxr.mozilla.org/mozilla/source/editor/libeditor/build/nsEditorRegistration.cpp
I am probably wrong, but can the NULL field in the new nsModuleComponentInfo
entry be the reason?
98 { NULL, NS_TEXTSERVICESDOCUMENT_CID,
99 "@mozilla.org/textservices/textservicesdocument;1",
100 nsTextServicesDocumentConstructor
Assignee | ||
Comment 16•22 years ago
|
||
marking fixed - this MAY have caused bug 164209, but I'm still skeptical. The
end result was:
Before:
editor.dll 373k
txtsvc.dll 23k
After:
editor.dll 393k
This is why I think this is unlikely: an addition of 20k to one DLL should not
cause a 3% startup regression.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•