Questions on optimizing Mathematica code for higher performance. This may mean faster execution, lower memory usage or both. Not to be confused with mathematical optimization.

Questions on optimizing Mathematica code for higher performance. This may mean faster execution, lower memory usage, or both. Use instead for minimization/maximization of objective functions.

Optimization includes questions about how to make your code consume less memory/time and questions about how to query/assess consumption. The former includes the use of special data structures (like packed arrays, hash tables, dispatch tables), compiling, caching, compression, calling external programs, etc. The latter includes timing, profiling, etc.

For questions specific for compilation please also use the tag . For caching, use the tag . For questions on how to call or communicate with external programs, please use . Questions about how to debug code should use .

Useful links:

Example questions: