[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-devtools
Subject:    Re:  HPUX-DEVTOOLS: dlsym() performance when multiple shared
From:       Dennis Handly <dhandly () cup ! hp ! com>
Date:       2004-01-28 2:11:11
Message-ID: 200401280211.SAA00867 () hpcll183 ! cup ! hp ! com
[Download RAW message or body]

> call dlsym(sharedObject1) to find the appropriate function for the
> if (not found) then
>    call dlsym(sharedObject2) to find the appropriate function for
>By trial & error they have found that if they just have one big shared object,
>then performance on HP-UX is OK. But with two (smaller) shared objects the
>performance is much worse.

Have you looked at ld's or chatr's +gst options?

>Is there a reason for this, or does it sound like a bug?
  John

Is it more than twice as slow?
How many functions in each shared lib?
If there are a lot of functions in sharedObject1 and lots of dependent
libs, you are wasting time when it isn't there.

It seems it may be more efficient to only do one call to dlsym by using
the RTLD_NEXT handle?
 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE hpux-devtools
 _________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic