Abstract:
Python script language offers high development efficiency, abundant and versatile libraries; as a result nowadays it is used in a wide range of research projects and prod...Show MoreMetadata
Abstract:
Python script language offers high development efficiency, abundant and versatile libraries; as a result nowadays it is used in a wide range of research projects and products domains. However, Python's interpretation characteristic becomes a speed bottleneck in some case, especially for extensive numerical operations. To solve this problem, many technologies to optimize Python are proposed. In this paper, we summarize the existing technologies and catalog them into 3 classes. The principles of respective technologies are explained. Experiments on representative Python codes are carried out, and then the speed performance, advantages and disadvantages are compared and explained in details. The experiment results reveal that Python codes can speed up by using feasible algorithm, or caching policies without resort to any external tools. Tools, such as Shed-skin and psyco, can enhance the speed performance with the minimal modification on original Python code models. Using extension libraries in static languages has a great advantage over other methods in the efficiency, which can supply a very higher speed raise. Thus in a particular situation, in order to get a desirable performance, the user should choose and resort to applicable technology according to the requirements.
Date of Conference: 22-24 October 2010
Date Added to IEEE Xplore: 03 December 2010
ISBN Information: