[dev] [Fwd: java-settings parsing ...]

2006-09-01 Thread Joachim Lingner

Hi,

Michael, I hope you do not mind keeping the discussion on openoffice.org 
to get to a wider audience.


Michael Meeks wrote:
 Hi there,

 Just looking at performance again, and javaldx is taking 1/2sec of my
 29second cold start time [ ok, perhaps not so significant - but it's at
 the beginning ;-].

 I was wondering - is there a good reason why it opens/reads
 javasettings_Linux_x86.xml 4 times back-to-back ? does that point to
 some underlying, more serious inefficiency ? :-)

 3187  1155897988.416627 
open(/home/michael/.ooo-2.0/user/config/javasettings_Linux_x86.xml, 
O_RDONLY) = 3
 3187  1155897988.421855 
open(/home/michael/.ooo-2.0/user/config/javasettings_Linux_x86.xml, 
O_RDONLY) = 3
 3187  1155897988.429026 
open(/home/michael/.ooo-2.0/user/config/javasettings_Linux_x86.xml, 
O_RDONLY) = 3
 3187  1155897988.432956 
open(/home/michael/.ooo-2.0/user/config/javasettings_Linux_x86.xml, 
O_RDONLY) = 3


 Of course soffice loads it twice too (very close to each other):

 3189  1155898002.592140 
open(/home/michael/.ooo-2.0/user/config/javasettings_Linux_x86.xml, 
O_RDONLY) = 30
 3189  1155898002.599333 
open(/home/michael/.ooo-2.0/user/config/javasettings_Linux_x86.xml, 
O_RDONLY) = 30


 Naturally most of the time is loading and linking this big stack of
 libraries:

 3187  1155897987.931102 
open(/usr/lib/ooo-2.0/program/libuno_sal.so.3, O_RDONLY) = 3
 3187  1155897988.064217 
open(/usr/lib/ooo-2.0/program/libuno_cppu.so.3, O_RDONLY unfinished ...
 3187  1155897988.105147 
open(/usr/lib/ooo-2.0/program/libuno_cppuhelpergcc3.so.3, O_RDONLY) = 3
 3187  1155897988.125532 
open(/usr/lib/ooo-2.0/program/libjvmfwk.so.3, O_RDONLY) = 3

 3187  1155897988.160798 open(/lib/libdl.so.2, O_RDONLY) = 3
 3187  1155897988.163670 open(/lib/libpthread.so.0, O_RDONLY) = 3
 3187  1155897988.165451 open(/usr/lib/libstdc++.so.6, O_RDONLY) = 3
 3187  1155897988.168436 open(/lib/libm.so.6, O_RDONLY) = 3
 3187  1155897988.171976 open(/lib/libgcc_s.so.1, O_RDONLY) = 3
 3187  1155897988.174826 open(/lib/libc.so.6, O_RDONLY) = 3
 3187  1155897988.177366 open(/lib/libcrypt.so.1, O_RDONLY) = 3
 3187  1155897988.178846 
open(/usr/lib/ooo-2.0/program/libstlport_gcc.so, O_RDONLY) = 3
 3187  1155897988.283149 
open(/usr/lib/ooo-2.0/program/libuno_salhelpergcc3.so.3, O_RDONLY) = 3

 3187  1155897988.294349 open(/usr/lib/libxml2.so.2, O_RDONLY) = 3
 3187  1155897988.296120 open(/usr/lib/libz.so.1, O_RDONLY) = 3
 3187  1155897988.379731 open(/etc/ld.so.cache, O_RDONLY) = 3
 3187  1155897988.380158 open(/lib/libnss_compat.so.2, O_RDONLY) = 3
 3187  1155897988.381973 open(/lib/libnsl.so.1, O_RDONLY) = 3
 3187  1155897988.385144 
open(/usr/lib/ooo-2.0/program/tls/libnss_nis.so.2, O_RDONLY 
unfinished ...

 3187  1155897988.386647 open(/lib/libnss_nis.so.2, O_RDONLY) = 3
 3187  1155897988.388574 open(/lib/libnss_files.so.2, O_RDONLY) = 3

 Apparently what the program does in the common case is read 2 files,
 and print a single path; [ which is presumably from a cache - why is it
 not cached in this form ? - can we not make the cache more easily
 readable ? what is the cache ageing mechanism ? ]

 We also open/read /etc/passwd 6 times in this process, access
 bootstraprc 9 times etc. ;-)

 Advice appreciated,

 Thanks,

 Michael.



It appears that javaldx loads the xml file several times. The question 
is what performance gains can be achieved when caching is used and what 
are the costs of additional complexity in code. One may also bear in 
mind, that it might be necessary to invalidate or update the cache, 
dependent on the requirements in the code. So without carefully 
analyzing the code it is not possible to make a good judgement.


Joachim


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Inserting remote document into local desktop

2006-09-01 Thread Carlos
Could you give me some pointers to load a document from an InputStream?  In
a Linux server, running OpenOffice in listening mode, I created an OO
document (*.odt) and saved in the file-system of the server.  Afterwards, I
try to load the document into the desktop of OpenOffice that runs locally in
my PC.  The local desktop shows but it never loads the document via an
InputStream.  The code to load the document into the local desktop is as
follows:

 

 

try {

// Create the name of the file stored in the server

String name = file:///;

name = name.concat(/tmp/testremotesave.odt);

 

 

// Create FileAccess to the remote service

XSimpleFileAccess fileAccess = (XSimpleFileAccess)
UnoRuntime.queryInterface(XSimpleFileAccess.class,
xRemoteServiceManager.createInstanceWithContext(com.sun.star.ucb.SimpleFile
Access,xRemoteContext));

 

// Create properties with remote file

PropertyValue[] loadProps = new PropertyValue[1];

loadProps[0] = new PropertyValue();

loadProps[0].Name = InputStream;

loadProps[0].Value = fileAccess.openFileRead(name);

 

// Get the local desktop

xLocalXDesktop = getDesktop(xLocalService);

 

// query the XComponentLoader interface from the desktop

XComponentLoader xComponentLoader =
(XComponentLoader)UnoRuntime.queryInterface(XComponentLoader.class,
xLocalXDesktop);

 

// load new local writer file

XComponent xLocalWordComponent =
xComponentLoader.loadComponentFromURL(private:factory/swriter, _blank,
0, loadProps);

 

// Display the local desktop

 
xLocalXDesktop.getCurrentFrame().getContainerWindow().setVisible(true);



 

} catch(Exception e) {

System.out.println(e.toString());

 

}

 

xRemoteServiceManager and xRemoteContext are references to the remote
OpenOffice services running in the server.  The idea is to create an
InputStream of the file via the remote service and then load the InputStream
into the local service.



[dev] programming

2006-09-01 Thread steven Holmes

Hello,

My name is Steven Holmes and i am interested in helping program for open 
office.  I have a degree in mathematics with a minor in computer science.  I 
have used C++, java, and scheme, but will probably need to brush up on them 
again before programming.  Thank you.


Steven Holmes


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] setting url for the string

2006-09-01 Thread Madhan Ponnusamy

Hi,
I need to assign a url to a string and then the string should be shown in
the text document..for example if i set a string in the way given below

String test
xTextRanget.setString(test);

the String test should be linked to url say www.gmail.com...this is what i
need can any one help me...


Re: [dev] introducing DialogDump

2006-09-01 Thread Thorsten Behrens
Frank Schönheit - Sun Microsystems Germany [EMAIL PROTECTED] writes:

 for those of you who need to create VCL dialogs more or less frequently
 ... you might be interested in DialogDump:
 http://wiki.services.openoffice.org/wiki/Dialog_Dump
 
Frank, you rock! This is way cool! :-)

-- 

Thorsten

If you're not failing some of the time, you're not trying hard enough.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] programming

2006-09-01 Thread Kay Ramme - Sun Germany - Hamburg

Steven,

my name is Kay Ramme, I am the owner of the UDK project of 
OpenOffice.org (OOo).


OOos code base is divided into so called accepted projects, see

  http://projects.openoffice.org/accepted.html

IMHO, one of the most important projects is the UDK :-)

  http://udk.openoffice.org

respectively

  http://wiki.services.openoffice.org/wiki/Uno

The UDK or UNO project specifies and implements OOos component model.

steven Holmes wrote:

Hello,

My name is Steven Holmes and i am interested in helping program for open 
office.  I have a degree in mathematics with a minor in computer 
science.  I have used C++, java, and scheme, but will probably need to 
brush up on them again before programming.  Thank you.
Despite to move (and update) the documentation from 
http://udk.openoffice.org into the wiki, there are various other todos, 
please see


  http://wiki.services.openoffice.org/wiki/Uno/Todo

Just send me a note, if you are interested ...  :-)


Steven Holmes

Kay

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Memory consumption of X server

2006-09-01 Thread Francis Giraldeau
I tested some different settings for printing. It seems that the option 
to not handle transparency for printing resolve the problem. Lower the 
printing resolution, but keeping transparency doesn't make a difference 
in memory usage. The tests detail have been added to the page :


http://www.mille-xterm.org/en/TerminalMemoryUsage

Now that printing is resolved, there is yet the problem with Impress. 
OpenOffice 2 build a cache of the presentation, and use about 20 Mb of 
ram to do so. I tried many options like cache for backgroud and graphic 
cache. It helps, but it's far from being much ram efficient that 
OepnOffice 1.


Why does this cache is keep? I don't see improvement in speed between. 
Is it possible to disable this cache?


Thanks

Francis


Thorsten Behrens a écrit :


Rich [EMAIL PROTECTED] writes:

 


this seems very similar to issue i filed some time ago :
http://qa.openoffice.org/issues/show_bug.cgi?id=44069
unless this is a completely different thing, why the same file shows
no such problem with 1.1.* versions ?

   


This is related, but not the same. Printing has always used additional
resources on the X server. Your problem stems from the fact that 2.0
now outputs more or less the whole page as a bitmap, because it's
covered by transparent bitmaps (since your images don't seem to use
transparency at all, it would be best to convert them to plain ones
beforehand). Without looking into it, I'd venture the guess that 1.1
was defective in this regard, or that Writer before did not output a
white rectangle of the page size (which it does now).

HTH,

 




--
Francis Giraldeau, Ing jr.
Revolution Linux
819-780-8955 poste *

Toutes les opinions et les prises de position exprimees dans ce courriel
sont celles de son auteur et ne representent pas necessairement celles
de Revolution Linux

Any views and opinions expressed in this email are solely those of the
author and do not necessarily represent those of Revolution Linux

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Openoffice

2006-09-01 Thread JPeachey
Hi, not sure if this is exactly how to contribute, but Openoffice could do with 
some way of making the setting as in MS Word Tools/Options/File 
Locations/Documents
 
so that on startup, the first opening directory is set to the user's choice.
 
Regards
 
JeremyP
Jeremy Peachey
 
tel 0207 973 7319
fax 0207 973 7399
[EMAIL PROTECTED]
 


Re: [dev] Re: Re: Building OpenOffice.org 2.0.3 hangs (Win/tcsh)

2006-09-01 Thread Charles Schulz
Let me forward this to Mr Kolkhi. Please keep this discussion either
inside the KA NL project.

thanks,
Charles.


Gia Shervashidze a écrit :
 Hello Charles,

 [May be] that's because of my terrible on-the-fly English? :)
 Here come quotations from my previous post:

   
 we're going to participate for development, Georgian l10n  i18n in the 
 corresponding OOo project (we just doing this).
   

 It means, that we (for now as www.gia.ge community)
 _ALREADY_:
 1. express interest to be a Georgian l10n (NL was reserved) team (strictly 
 followed OOo instructions)
 2. send patches providing Georgian Language support (approved)
 3. translate 100% of UI
 4. build full Linux RH FC5 installer 2.0.2 with _implemented_ Georgian UI 
 (Giomac)
 5. build (Cygwin/tcsh) full Windows installer 2.0.3 (me - not yet with 
 Georgian)
 and now we're testing translation

   
 we're not going to intervene in the creating of Georgian part of OOo web 
 site in the Native Language Project (we can _complementary_ do it within 
 our local community as many countries does).
   
 It means, that:
 1. We have our l10n, i18n role and NOT going to disturb NL project.  We're 
 going to work on development, l10n, i18n, preparation and publishing our own 
 and more specific documentation for local community.  And yes, we'll be 
 happy to share our experience and it could be used by NL project.


 Charles Schulz [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
   
 Hello Gia,

 Gia Shervashidze a écrit :
 
 Also - i don't think here is a right place to discuss Georgian case.
 Same time - in case of necessity i'll be glad to explain details of
 reasons for above mentioned intentions - it will be pleasure for me.
 For now i can not give myself permission to do that without presence
 of the person from NL-ka project.
   

 It means, that i'm not going to talk regarding the person without his/her 
 precense, but ready to do it in public with his/her presence.

   
 Good. I've put Mr Aiet Kolhi in copy of this mail. Since I don't have
 the time for this (I'm busy with the OOoCON), I am sure that you will
 find a role inside the Georgian OOo NL and help them with the
 localization in process.
 

 Sure, we can help him also, especially [i hope] everybody locally already 
 knows our/others places/roles.

   
 in order to avoid any useless duplication of work.
 

 Yep, only silly or overambitious persons can disagree with You. :)

 All the best,
 g.\

 P.S. Seems we're bit off topic ;) - build successful for cygwin/tcsh and RH 
 FC5 



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]