Re: [PATCH v2] iio: gts: Simplify available scale table build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20/12/2024 21:21, Jonathan Cameron wrote:
On Mon, 16 Dec 2024 10:56:37 +0200
Matti Vaittinen <mazziesaccount@xxxxxxxxx> wrote:

Make available scale building more clear. This hurts the performance
quite a bit by looping throgh the scales many times instead of doing
everything in one loop. It however simplifies logic by:
  - decoupling the gain and scale allocations & computations
  - keeping the temporary 'per_time_gains' table inside the
    per_time_scales computation function.
  - separating building the 'all scales' table in own function and doing
    it based on the already computed per-time scales.

Signed-off-by: Matti Vaittinen <mazziesaccount@xxxxxxxxx>
Looks good to me, but I want to leave it on list a while before applying.
Ideal if it gets some tested-by or other tags before I pick it up.
As always, this is fiddly code, so the more eyes the better!

Please, let it wait until the Christmas has passed. I got information we might be getting some testing before the year changes :)

Yours,
	-- Matti




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux