Timeline for How to improve the performance of this code
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 2, 2013 at 2:27 | comment | added | Jagra | As Alex has defined Ei as a function, does he really need to pass it to solveSystemCylinder[]? It might make more sense stylistically and clarity wise to make Ei[p_,k_] a local function of solveSystemCylinder[] similar to t[x_]. Doing so doesn't appear to affect performance, but sometimes these kind of things can clarify one's approach to a problem. | |
Dec 1, 2013 at 23:41 | answer | added | Cassini | timeline score: 1 | |
Dec 1, 2013 at 22:58 | comment | added | bill s |
One thing that might be slowing you down is the erratic uses of SetDelayed and Set . At the very least, your constants should not be defined with := and your functions should be defined with. You can use Timing to tell how long various function calls take -- figuring out which parts are slow will go a ways towards understanding what can be optimized.
|
|
Dec 1, 2013 at 22:52 | review | First posts | |||
Dec 1, 2013 at 23:19 | |||||
Dec 1, 2013 at 22:37 | history | asked | Alex | CC BY-SA 3.0 |