|
Use of profile to find slow statements |
Top Previous Next |
|
Now lets look at what the profile reveals.
---- 13 ASSIGNMENT x 0.090 0.090 SECS 5.7 Mb 172800 ---- 15 ASSIGNMENT z 0.520 0.610 SECS 9.9 Mb 172800 ---- 17 ASSIGNMENT y 0.561 1.171 SECS 9.9 Mb ---- 29 ASSIGNMENT slow 0.000 1.171 SECS 9.9 Mb ---- 30 SOLVE INIT slow 0.000 1.171 SECS 9.9 Mb ---- 24 EQUATION objeq 1.142 2.313 SECS 10.5 Mb 1 ---- 25 EQUATION R 0.861 3.174 SECS 17.8 Mb 1200 ---- 26 EQUATION q 1.142 4.316 SECS 18.3 Mb 1440 ---- 30 SOLVE FINI slow 0.120 4.436 SECS 18.3 Mb ---- 1 EXEC-INIT 0.000 0.000 SECS 9.2 Mb solve appeared here ---- 30 SOLVE READ slow 0.010 0.010 SECS 9.7 Mb ---- 32 ASSIGNMENT sumofvar 0.701 0.711 SECS 10.5 Mb
Note the red lines identify the statements by number and symbol where large execution times are encountered (i.e., statements 15,17, 24, 25, 26, and 30). In turn, one can examine those statements to see if they can be reworked for faster execution. Reasons why statements may be slow are discussed below. |