4 ms·
Like http://www.erikyyy.de/compilercache http://www.erikyyy.de/compilercache but for any python program. Very cool.
by akkartik 16y ago
Like http://www.erikyyy.de/compilercache http://www.erikyyy.de/compilercache but for any python program. Very cool.
- imurray 16y agoErm, not really. Compiler cache saves compiled versions of files. When building a large project it notices things that have been built before and looks up the compiled code from a central cache. If you have to do a "make clean" (e.g. some scripts for making Debian packages start this way) you still get fast re-builds. The linked article is about run-time memoization: rather than caching the compiled version of a function's code, you cache just the output of the function for particular inputs.
- akkartik 16y ago"rather than caching the compiled version of a function's code, you cache just the output of the function for particular inputs." Think of the function as the compiler and the inputs as your C files. The kinds of things the two are doing are very similar, but incPy's job is much harder.
- koenigdavidmj 16y agohttp://ccache.samba.org/ http://ccache.samba.org/ is a much more well used version of the same thing.