group-social-force icon indicating copy to clipboard operation
group-social-force copied to clipboard

Speed Up the Program

Open godisreal opened this issue 5 years ago • 6 comments

Shall I use Cython to speed up the program?
In current test there are only 8 agents and if there are more, the computation slows down.
The computation complexity increases with the number of agents (in form of N^2).
There are some python program that writes agent model in C/C++. Currently I do not want to rewrite the model in C/C++, but maybe Cython is an alternative way to speed up the program.
I haven't used Cython before. Any suggestions?

godisreal avatar Jun 15 '19 11:06 godisreal