Be aware that many routines include special code for floating-point computations at settings of Digits that are below the hardware precision. Avoid expensive, recursive operations . Some routines, even built-in procedures, are very expensive because they must traverse an entire expression to compute their results. Two specific examples are has and hastype. Do not create garbage .
Maple provides automatic storage management.
This means that you can allocate as much storage as you want, and Maple will take care of reclaiming any storage that is no longer in use. Tune the garbage collector for the machine on which you want to run your application. The most effective optimizations are those that tune an application for optimal use of the computer's memory hierarchy. Experiment with various garbage collection settings to optimize the performance of long-running computations. For more information, see the gcfreq variable of the kernelopts command.