Files
tfhe-rs/tfhe
Petar Ivanov a77c66244c fix(core): improve FFT and NTT plan cache locking
Instead of always write-locking the plan maps first, read-lock them and
check if the entry for the given size is present. If not, write-lock and
insert it.

That reduces contention on the map lock, allowing multiple threads to
get an already created plan concurrently, without waiting on the write
lock.

Furthermore, use a (polynomial size, modulus) key for the NTT plan map,
avoiding an issue where the user would get the incorrect plan if a
different modulus is used for the same polynomial size.
2025-08-18 16:50:02 +02:00
..
2025-06-18 10:20:49 +02:00
2025-06-18 10:20:49 +02:00
2023-09-20 09:39:50 +02:00
2025-02-18 13:19:28 +01:00