speed up calculations #467
-
Dear Dr. Cui and Jinning, Best wishes |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There is no silver bullet to make simulations faster.. ANDES code is rather optimized. You can search for online tutorials about anti-patterns that slows down Python in your user code. |
Beta Was this translation helpful? Give feedback.
-
Here are some personal suggestions to consider:
Welcome further discussion if you recognize more details of performance issues in your code. |
Beta Was this translation helpful? Give feedback.
Here are some personal suggestions to consider:
Profiling your code to identify the most time-consuming parts can help you pinpoint areas that need optimization. By focusing on optimizing those specific sections, you can achieve significant performance improvements.
ANDES supports batch processing, which can be beneficial for data generation tasks. You can refer to the example provided in the ANDES documentation here to learn more about how batch processing can be utilized effectively.
Vectorization is generally more efficient than using loops for data manipulation operations. Utilizing NumPy's vectorized operations can help optimize your code by performing computations on entire ar…