image thumbnail

iansheret/CachePureFunction

version 1.0.0.0 (16 KB) by Ian Sheret
如果c代码缓存计算缓慢,更新hanges.

35 Downloads

Updated22 Mar 2018

From GitHub

View license on GitHub

CachePureFunction is a simple tool for caching the results of expensive calculations. Any function call can be wrapped up; the first time it's evaluated a cache file will be created, and on subsequent calls the result will be read from disk instead of calculated. Calling the same function with different arguments is fine, separate cache files will be maintained.
CachePureFunction takes special care to detect when the source code changes, and it will reevaluate the function if needed. This doesn't just apply to the top level function, all of the functions which are involved in a calculation are tracked.

Cite As

Ian Sheret (2022).iansheret/CachePureFunction(https://github.com/iansheret/CachePureFunction), GitHub. Retrieved.

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by:GetFullPath,DataHash

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
To view or report issues in this GitHub add-on, visit theGitHub Repository.
To view or report issues in this GitHub add-on, visit theGitHub Repository.