>

$\mathrm{with}\left(\mathrm{DiscreteTransforms}\right)$

$\left[{\mathrm{DiscreteWaveletTransform}}{\,}{\mathrm{FourierTransform}}{\,}{\mathrm{InverseDiscreteWaveletTransform}}{\,}{\mathrm{InverseFourierTransform}}{\,}{\mathrm{WaveletCoefficients}}{\,}{\mathrm{WaveletPlot}}\right]$
 (1) 
>

$\mathrm{Digits}\u225415\:$

Consider a problem with data length of 1 million. Storage of the complex data alone requires 16 MB. Use of the minstorage algorithm requires virtually no additional data be allocated (the largest prime factor is 5), while in this case use of the (default) mintime algorithm requires allocation of an additional 16 MB.
Note: Use ArrayTools and evalhf to more rapidly construct the input dataset (which is $\sqrt{\frac{i}{N}}\+\mathrm{I}\mathrm{sin}\left(\frac{10i}{N}\right)$ for $i\=1..N$).
>

$N\u22541000000\:$

>

$Z\u2254\mathrm{Vector}\left(N\,\mathrm{datatype}\=\mathrm{complex}\[8\]\right)\:$

>

$\mathrm{Za}\u2254\mathrm{ArrayTools}:\mathrm{ComplexAsFloat}\left(Z\right)\:$

>

fill := proc(N,Za) local i;
for i to N do
Za[2*i1] := sqrt(i/N);
Za[2*i] := sin(10*i/N);
end do:
end proc:

>

$\mathrm{evalhf}\left(\mathrm{fill}\left(N\,\mathrm{var}\left(\mathrm{Za}\right)\right)\right)\:$

And at this point, Maple's memory usage is at ~ 17MB  the size of the data Array.
The transform with 'minstorage':
>

$\mathrm{tt}\u2254\mathrm{time}\left(\right)\:$

>

$\mathrm{FourierTransform}\left(Z\,\mathrm{inplace}\=\mathrm{true}\,\mathrm{algorithm}\=\mathrm{minstorage}\right)\:$

>

$\mathrm{time}\left(\right)\mathrm{tt}$

and Maple's memory usage has stayed roughly constant.
The default 'mintime' transform (after resetting Z),
>

$\mathrm{evalhf}\left(\mathrm{fill}\left(N\,\mathrm{var}\left(\mathrm{Za}\right)\right)\right)\:$

>

$\mathrm{tt}\u2254\mathrm{time}\left(\right)\:$

>

$\mathrm{FourierTransform}\left(Z\,\mathrm{inplace}\=\mathrm{true}\,\mathrm{algorithm}\=\mathrm{mintime}\right)\:$

>

$\mathrm{time}\left(\right)\mathrm{tt}$

which for this problem takes noticeably less time, but increases Maple's memory usage to ~ 32 MB (double).