Reducing redundancy in cached data?
Currently, plans are cached at the level of "full" 1D transforms, i.e. there are cached objects of type pocketfft_c
, pocketfft_r
, T_dst1
etc. However these objects in turn again hold objects of type cfftp
, rfftp
, fftblue
etc., which are often identical for different "high-level" objects.
Is there a way (and would it be efficient) to avoid this redundancy, e.g. by having the constructors of pocketfft_c
call get_plan<cfftp>
or get_plan<fftblue>
? I'll be happy to try this, but I fear this might need special precautions to avoid deadlocks.
@peterbell10, if you have some time to think about this, I'd appreciate your opinion, but it's definitely not high priority.