Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] implementation of copy standard lib

Martijn Brouwere.a.m.brouwer at alumnus.utwente.nl
Mon Aug 15 00:48:00 CEST 2005


Hi,After profiling a small python script I found that approximately 50% ofthe runtime of my script was consumed by one line: "import copy".Another 15% was the startup of the interpreter, but that is OK for aninterpreted language. The copy library is used by another library I amusing for my scripts. Importing copy takes 5-10 times more time thatimport os, string and re together!I noticed that this lib is implemented in python, not in C. As I canimagine that *a lot* of libs/scripts use the copy library, I think itworthwhile to implement this lib in C.Unfortunately I cannot do this myself: I am relatively inexperiencedwith python and do not know C.What are your opinions?Martijn Brouwer-- __________________________________________________I have a new e-mail adress. If you are still usinge.a.m.brouwer at tnw.utwente.nl, please change toe.a.m.brouwer at alumnus.utwente.nl__________________________________________________


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp