Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!kithrup!sef From: sef@kithrup.COM (Sean Eric Fagan) Newsgroups: comp.unix.wizards Subject: Re: Shared libraries (was Re: Window system bashing (was Re: X11 bashing)) Message-ID: <1991Apr29.030756.3291@kithrup.COM> Date: 29 Apr 91 03:07:56 GMT References: <73761@brunix.UUCP> <1991Apr29.025800.3108@kithrup.COM> Organization: Kithrup Enterprises, Ltd. Lines: 18 In article <1991Apr29.025800.3108@kithrup.COM> sef@kithrup.COM (Sean Eric Fagan) writes: >On a '386 running SCO UNIX (or xenix, for that matter), a call to a shared >library function one jump in addition to the normal call. Thus, there is a >*very* slight performance hit. Oops. Forgot something, which explained my next paragraph. In addition to the call overhead, any shared data goes through an extra level of indirection, adding to execution time, and any function within the same shared library will also go through an extra layer of indirection. While this is not necessarily worth it for things like printf, I do believe that it is worth it for things like X. -- Sean Eric Fagan | "I made the universe, but please don't blame me for it; sef@kithrup.COM | I had a bellyache at the time." -----------------+ -- The Turtle (Stephen King, _It_) Any opinions expressed are my own, and generally unpopular with others.