On the Performance of the Python Programming Language for Serial and Parallel Scientific Computations

Xing Cai, Hans Petter Langtangen, Halvard Moe
2005 Scientific Programming  
This article addresses the performance of scientific applications that use the Python programming language. First, we investigate several techniques for improving the computational efficiency of serial Python codes. Then, we discuss the basic programming techniques in Python for parallelizing serial scientific applications. It is shown that an efficient implementation of the array-related operations is essential for achieving good parallel performance, as for the serial case. Once the
more » ... ted operations are efficiently implemented, probably using a mixed-language implementation, good serial and parallel performance become achievable. This is confirmed by a set of numerical experiments. Python is also shown to be well suited for writing high-level parallel programs.
doi:10.1155/2005/619804 fatcat:yvhy6pkmrfgd7mq56ctbuiaaqy