-
[펌] 10 Tips for Writing Fast Mathematica CodeResearch Programming 2013. 1. 8. 10:45
http://blog.wolfram.com/2011/12/07/10-tips-for-writing-fast-mathematica-code/
1. Use floating-point numbers if you can, and use them early. :e.g. enter a third as 1./3.
2. Learn about Compile...
2.5. ...and use Compile to generate C code.
3. Use built-in functions.
4. Use Wolfram Workbench.
5. Remember values that you will need in the future.
6. Parallelize.
6.5. Think about CUDALink and OpenCLLink.
7. Use Sow and Reap to accumulate large amounts of data (not AppendTo).
8. Use Block or With rather than Module.
9. Go easy on pattern matching.
10. Try doing things differently.