* Re: Slowdown when dynamically loading a shared lib
[not found] ` <519A71327421D2118C2000805F65E04D03423342@email.usinor.com>
@ 1999-03-17 5:00 ` Damir Buskulic
1999-03-19 5:00 ` Stephen Kennedy
0 siblings, 1 reply; 3+ messages in thread
From: Damir Buskulic @ 1999-03-17 5:00 UTC (permalink / raw)
> >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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Slowdown when dynamically loading a shared lib
1999-03-17 5:00 ` Slowdown when dynamically loading a shared lib Damir Buskulic
@ 1999-03-19 5:00 ` Stephen Kennedy
1999-03-19 5:00 ` Damir Buskulic
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Kennedy @ 1999-03-19 5:00 UTC (permalink / raw)
>> >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.
[my emphasis]
There is a certain amount of time overhead involved in shared libraries,
If the routine is non trivial the space saved is well worth it. Very small
routines however...
Could you wrap several calls to the lib into one bigger call?
And does it make a difference?
Steve.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Slowdown when dynamically loading a shared lib
1999-03-19 5:00 ` Stephen Kennedy
@ 1999-03-19 5:00 ` Damir Buskulic
0 siblings, 0 replies; 3+ messages in thread
From: Damir Buskulic @ 1999-03-19 5:00 UTC (permalink / raw)
Stephen Kennedy wrote:
>
> >> >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.
>
> [my emphasis]
>
> There is a certain amount of time overhead involved in shared libraries,
> If the routine is non trivial the space saved is well worth it. Very small
> routines however...
>
> Could you wrap several calls to the lib into one bigger call?
> And does it make a difference?
>
> Steve.
Thanks for the suggestion. I found what it was.
In fact, there seems to be a problem between egcs1.1.1 and the OSF1
loader. Everything works fine if I use cc instead of egcs.
I suppose I should contact the egcs people
Damir
--
=====================================================================
| Damir Buskulic | Universite de Savoie/LAPP |
| | Chemin de Bellevue, B.P. 110 |
| Tel : +33 (0)450091600 | F-74941 Annecy-le-Vieux Cedex |
| e-mail: buskulic@lapp.in2p3.fr | FRANCE |
=====================================================================
mailto:buskulic@lapp.in2p3.fr
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-03-19 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <36EF7CF6.B6A0325E@lapp.in2p3.fr>
[not found] ` <519A71327421D2118C2000805F65E04D03423342@email.usinor.com>
1999-03-17 5:00 ` Slowdown when dynamically loading a shared lib Damir Buskulic
1999-03-19 5:00 ` Stephen Kennedy
1999-03-19 5:00 ` Damir Buskulic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox