This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: Inline instance cache
- From: Frank Ch. Eigler <fche at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 10 Oct 2008 10:21:41 -0400
- Subject: Re: Inline instance cache
Hi -
On Thu, Oct 09, 2008 at 03:36:31PM +0200, Petr Machata wrote:
> >>Plus, it doesn't punish users which make only a few such calls.
> >
> >If the cache is populated during the first actual call, then its
> >presence need not punish users.
>
> That's how it's done. It will still punish users who do e.g. only one
> call in a given CU. The cache setup is not for free, and will start to
> pay off only after several calls.
In theory, the cache itself need not be populated entirely at the
first call; it could do so incrementally as further queries come in.
In practice, the only big user of libdwfl is systemtap, and we're
happy to pay the price of even a less-than-fully-clever caching
implementation.
- FChE