Tag Info

New answers tagged

6

Not much different from your approach and maybe not the best/safest approach, but DumpSave helps a bit because at least you don't have to works with strings: cacheFile = FileNameJoin[{$TemporaryDirectory, "fibonacciCache" <> ".mx"}]; If[FileExistsQ[cacheFile], Get[cacheFile], fibonacci[1] = 1; fibonacci[2] = 1; fibonacci[n_Integer] := Module[{}, ...



Top 50 recent answers are included