feyncalc icon indicating copy to clipboard operation
feyncalc copied to clipboard

Fix the stale cache problem

Open j824h opened this issue 4 years ago • 0 comments

This is to fix the issue #151 .

A concern is that this will cause FCUseCache[] to actually cache the dependency indefinitely until FCClearCache[] is called manually. This might cause a new memory overhead when dependency is updated frequently, especially so since cachedToString[] does not employ MemSet[].

Test did run slightly slower. test-69324b9.txt test-ee27a8f.txt

Besides, I am curious if caching ToString[] is beneficial, since I would expect it is supposed to be merely a conversion.

j824h avatar Jan 26 '22 01:01 j824h