Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion dlopen() performance on Mac OS X?

View Parsed - Show only message text

Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 03 Jul 2009 21:04:19 -0500
From: Simon Connah <simon.con...@googlemail.com>
Newsgroups: comp.unix.programmer
Date: Sat, 4 Jul 2009 03:04:19 +0100
Message-ID: <2009070403041975249-simonconnah@googlemailcom>
References: <2009070401214616807-simonconnah@googlemailcom> <h2ma7p$v6n$1@news.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Subject: Re: dlopen() performance on Mac OS X?
User-Agent: Unison/1.8.1
Lines: 26
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-AzNoJwmz0sez24da+dDkc+wMGvrHtr09E3hCqHmtreK4AWykUcPteV3A4ON2iSqanU2mXLcD4C/u2w8!iQZ5Vq3f9qljvAqhqxXO+4jTSgrktRc7e2XcPp8wR5cFNuRXev26hzhF8IDa5+qcTyzJEBFcKkA=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.39
X-Original-Bytes: 2383

On 2009-07-04 02:07:39 +0100, Eric Sosman <esos...@ieee-dot-org.invalid> said:

> So I imagine you're worried about the use of the functions
> residing in the library to which dlopen() gives you access.
> There are two (potential) penalties I can think of: First, each
> call must be indirect through a function pointer variable rather
> than direct to an address known at link time, and second, it may
> be that the address-space shenanigans with which a particular
> system supports dynamic linking tend to punish MMU's and TLB's
> and the like.

Yes, sorry I should have been more specific. I was using dlopen() as a 
short hand for describing the whole system rather than just the 
function call itself.

What I was really trying to get at was whether the dlopen / dlsym / 
dlclose system added any extra over head on top of what the system 
already uses for dynamic linking? Obviously there is going to be a 
small performance loss due to needing to search for the library and 
possibly deciding which is the correct library to load but other than 
that is there any difference?

Or is it the same implementation just with a developer accessable interface?

Hopefully that made a bit more sense.


Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google