|
|
|
|
|
by acqq
4047 days ago
|
|
Yes, and starting from the distributed version first, one can even miss the fact that everything can be immensely faster once the communication is out of the way. There's no a single simple answer, except: don't decide about the implementation first, instead competently and without prejudice evaluate your actual possibilities. Also don't decide the language like "Python" or "Ruby" first. If you expect that the calculations are going to take a month, then code them in Ruby and wait the month for the result, you can miss the fact that you could have had the results in one day by just using another language, most probably without sacrifying the readability of the code much. Only if the task is really CPU-bound, of course. On another side, if you have a ready solution in Python, and you'd need a month to develop the solution for other language, the first thing you have to consider is how often you plan to repeat the calculations afterwards. Etc. |
|
There is a lot to be said for confirming that you have the right logic and then looking into something like PyPy/Cython/etc. or porting to a lower-level language.