Re: [linux-audio-dev] LADSPA run() blocksize

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] LADSPA run() blocksize
From: David Benson (daveb_AT_idealab.com)
Date: Fri Nov 17 2000 - 16:49:48 EET


> >You can always just chop input[] into <= buffer[] sized chunks to do your
> >processing. Might be a bit slower, but *shrug*.
>
> *shrug* !!?!! :)
>
> Its an optimization yes, but then we need optimizations like a fish
> needs water.

The problem is that the optimizations are so small, that they seem
like pure bloat. In particular, *most* plugins are going to
have their time dominated by the iterations of the per-sample loop,
so what you do every 1024 samples doesn't seem too important
(if your plugin chose 1024...)

Actually, I sort of think you should just have your host override
malloc() with something that satisfies you more... (i guess something
that does preallocation since you feel brk will break you. you might
try the `hoard' i saw on freshmeat a while ago.)

For this and the run_adding() argument, I'd love to see measurements
(your intuition and mine differ on their importance)

Summary: I'm worried very much about adding/recommending plugin complexity
that could be done (with say >99% efficiency) by the host.

- dave

- dave


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Nov 17 2000 - 17:31:20 EET