Re: [linux-audio-dev] getting paranoid: speed diff of using & instead of % in ALSA

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

Subject: Re: [linux-audio-dev] getting paranoid: speed diff of using & instead of % in ALSA
From: Jaroslav Kysela (perex_AT_suse.cz)
Date: pe maalis 10 2000 - 09:26:37 EST


On Fri, 10 Mar 2000, Benno Senoner wrote:

> But even if & is 16 times faster than % , using very small fragments
> like 1msec fragments, and assuming ALSA does 5 % operations per fragment.

Alsa does TWO % operations in an interrupt at maximum (if I don't count
the boundary correction which is called only when the limit for unsigned
32-bit integer is near - only once per 100 minutes for 96kHz/32-bit/stereo).
Usually (with most common hardware) is % used only once.

                                                        Jaroslav

-----
Jaroslav Kysela <perex_AT_suse.cz>
SuSE Linux http://www.suse.com
ALSA project http://www.alsa-project.org


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

This archive was generated by hypermail 2b28 : su maalis 12 2000 - 09:14:06 EST