Efficiency Improvements in Maple 12
Maple 12 includes numerous efficiency improvements. Some highlights where dramatic speed-ups were achieved are described below.
Improvements to solve
Expansion of Symbolic Polynomials
Several enhancements were made to zip.
Direct hardware-float callbacks are recognized for certain routines. These can bypass much of the overhead of ordinary interpreted function evaluation resulting in speed similar to that of compiled code. The following now takes 0.084 seconds in Maple 12 compared to 3.900 seconds on the same machine in Maple 11.
N := 1000:
A := Matrix(1..N,1..N,datatype=float):
B := Matrix(1..N,1..N,datatype=float):
Special case detection for some built-in non-hardware float operations. For example, the following now takes 0.104s compared to 3.532s before.
A := Matrix(1..N,1..N):
B := Matrix(1..N,1..N):
Automatic procedure inlining is applied when possible. Most arrow-operator functions bypass normal function evaluation overhead resulting in better speed. The following now takes 1.104s compared to 4.248s before.
With the introduction of round bracket array indexing, certain block-copy operations can be done much more efficiently as no intermediate object needs to be created. For example the second timing below using round brackets for indexing into A and B is much faster than the first timing, which uses square brackets. The result of a square bracket index assignment is always the assigned value so an intermediate object needs to be computed. The result of a round bracket index assignment is always the whole array, so, if the right side is a large block subselection, the intermediate copy can be bypassed in most cases resulting in memory savings.
N := 4000:
A := LinearAlgebra:-RandomMatrix(N,N):
B := Matrix(N,N):
t := time():
The solve command takes further advantage of the FGb library, the world's most efficient Groebner bases engine. It also uses a new, faster sparse exact linear system solver for systems with rational coefficients.
Here is an example of a small dimension 1 system for which the solve command in Maple 11 was unable to find a solution. A solution could be found using FGb by calling the Groebner[Solve] command. Now in Maple 12, solve uses FGb and finds the 22 solutions in about 30 seconds.
In Maple 10, before the FGb library was used by the Groebner package, solving this system would have taken about twice as long on the same machine.
Expansion of large polynomials via the expand command has been improved. The following is a subset of a larger example. The original example used to take over 1400s to compute and now finishes in under 200s on the same machine. The example below has about a 3 times speed-up compared to Maple 11.
Index of New Maple 12 Features
Download Help Document
What kind of issue would you like to report? (Optional)