[Pkg-alsa-devel] Bug#552240: Bug#552240: libasound2: speed up snd_device_name_hint by caching path to libasound.so

Elimar Riesebieter riesebie at lxtec.de
Sat Oct 24 17:09:03 UTC 2009

tags 552240 wontfix

Hi John,

* John Lindgren [091024 11:51 -0400]
> Package: libasound2
> Version: 1.0.21a-1
> Severity: normal
> Tags: patch
> In a call to snd_device_name_hint, snd_dlopen is frequently called with
> the parameter name == NULL, meaning to open libasound.so itself.  In
> this case, snd_dlopen calls dladdr on every call to find out the path to
> libasound.so.  I am attaching a simple patch to cache this path within
> snd_dlopen so that dladdr is called only once; with this patch, the
> execution time of snd_device_name_hint (a somewhat slow call) is reduced
> by 40%.

it seems to be that you'll get an alsa developer more and more. So
please don't expect that the Debian ALSA-package maintainers will fix
irregular behaviour you find in ALSA. Please take advantage to
discuss those things directly with the ALSA developers at
alsa-devel at alsa-project.org. Distribution specific fixes don't make
sense in this paticular case. All ALSA users should have advantage
of your devælopment ;-) I declare this bug as wontfix, as far as I
won't forward this as another bug found from you to alsa-devel.


  The path to source is always uphill!

More information about the Pkg-alsa-devel mailing list