From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,50784b2f7bdaf9a4,start X-Google-Attributes: gidfc89c,public X-Google-Thread: 1164f8,50784b2f7bdaf9a4,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 1014db,50784b2f7bdaf9a4,start X-Google-Attributes: gid1014db,public X-Google-Thread: 108717,50784b2f7bdaf9a4,start X-Google-Attributes: gid108717,public From: Damir Buskulic Subject: Re: Slowdown when dynamically loading a shared lib Date: 1999/03/17 Message-ID: <36F01FAD.28AE@lapp.in2p3.fr>#1/1 X-Deja-AN: 455872134 Content-Transfer-Encoding: 7bit References: <36EF7CF6.B6A0325E@lapp.in2p3.fr> <519A71327421D2118C2000805F65E04D03423342@email.usinor.com> Content-Type: text/plain; charset=us-ascii Organization: In2p3 Mime-Version: 1.0 Reply-To: buskulic@lapp.in2p3.fr Newsgroups: comp.lang.c,comp.programming,comp.sys.dec,comp.unix.programmer > >I'm having a strange problem (for me at least) on OSF 4.0D, using egcs. > >I'm using a program that can load dynamically shared libraries > >(it's called ROOT : http://root.cern.ch). > >I've build such a library and when I load it dynamically, it is around > >10 times slower than if I link it to the executable at compile time. The > >exact same small routine. > > > > For performance problem, did you load your library only once or at each call > ? Only once. > Some machine use optimizations: > if DISPLAY is :0.0, shared memory is used to communicate between X and > client instead of using sockets. thanks for the explanation. This seems to indicate something with X. The problem is that I see the behaviour also without using X at all. I mean I don't do any call to the X server (at least that I know of, the program is quite big). There is no graphical output, just text. Damir