Hi.
I have seen some discussions going on about making Python code faster
and several measures looked fairly 'esoteric' to me (i.e.: you need to
know a lot of background things to even KNOW about these possibilities).
Is there anywhere a concise Howto, article, PEP, whatever that describes
possible measures to make Python code faster (and probably 'cleaner',
too)? And possibly in a way, that a beginner or intermediate Python user
can understand? ;-)
If you know of any such docs, I would be happy if you could post some links.
Regards
Andreas 4 1754
"Andreas Neudecker" <a.*********@uni-bonn.de> wrote in message
news:bj***********@f1node01.rhrz.uni-bonn.de... Is there anywhere a concise Howto, article, PEP, whatever that describes possible measures to make Python code faster (and probably 'cleaner', too)? And possibly in a way, that a beginner or intermediate Python user can understand? ;-)
If you know of any such docs, I would be happy if you could post some
links. http://manatee.mojam.com/~skip/python/fastpython.html
HTH
Sean
* Andreas Neudecker (a.*********@uni-bonn.de) wrote: Hi.
I have seen some discussions going on about making Python code faster and several measures looked fairly 'esoteric' to me (i.e.: you need to know a lot of background things to even KNOW about these possibilities).
Is there anywhere a concise Howto, article, PEP, whatever that describes possible measures to make Python code faster (and probably 'cleaner', too)? And possibly in a way, that a beginner or intermediate Python user can understand? ;-)
If you know of any such docs, I would be happy if you could post some links.
Regards
Andreas
One link that has helped me out is http://manatee.mojam.com/~skip/python/fastpython.html. I got a considerable performance boost on a parser that I wrote by following his suggestions (specifically doing things over and over and the use of the profiler).
HTH
Jeremy Jones
Thanks for the answers. Really a very useful document.
Regards
Andreas
Andreas Neudecker wrote: Hi.
I have seen some discussions going on about making Python code faster and several measures looked fairly 'esoteric' to me (i.e.: you need to know a lot of background things to even KNOW about these possibilities).
Is there anywhere a concise Howto, article, PEP, whatever that describes possible measures to make Python code faster (and probably 'cleaner', too)? And possibly in a way, that a beginner or intermediate Python user can understand? ;-)
If you know of any such docs, I would be happy if you could post some links.
Regards
Andreas
Andreas> Thanks for the answers. Really a very useful document.
Like most other static pages, my fast python page: http://manatee.mojam.com/~skip/python/fastpython.html
can quickly get out-of-date, and I don't have a lot of spare time to work on
it. I'd be more than happy to set up a Wiki so the community can help
maintain it. If you think you'd contribute something (however minor) if it
was Wiki-fied, let me know.
Skip This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Steven Bethard |
last post by:
Can someone point me to the documentation on what's supposed to happen
when you use the "for x in X:" syntax when X does not have an __iter__
method? I know that the code:
>>> class S:
.... ...
|
by: Fuzzyman |
last post by:
The following two passages from the python documentation *appear* to
contradict each other. Equally possible (or more likely !) is that I
misunderstand it :
eval :
This function can also be...
|
by: Xah Lee |
last post by:
is it possible in Python to create a function that maintains a variable
value?
something like this:
globe=0;
def myFun():
globe=globe+1
return globe
|
by: Luis P. Mendes |
last post by:
Hi,
I have a 1000 line python script that takes many hours to finish. It is
running with six inside 'for' loops.
I've searched the net for ways to speed up the proccess.
Psyco improves...
|
by: Veli-Pekka Tätilä |
last post by:
Hi,
My first post here. I've found some serious accessibility flaws in the
Python 2.4 docs and wish they could be rectified over time. I'm very new to
Python and initially contacted docs at python...
|
by: jocknerd |
last post by:
About 10 years ago, I wrote a C app that would read scores from
football games and calculate rankings based on the outcome of the
games. In fact, I still use this app. You can view my rankings at...
|
by: Alan Isaac |
last post by:
This is an attempt to synthesize Bill and Carsten's proposals.
(I'm changing the subject line to better match the topic.)
http://docs.python.org/lib/typesmapping.html: for footnote (3)
Keys...
|
by: 7stud |
last post by:
Hi,
1) The shelve module doesn't list close() as a method.
2) The fnmatch module does not even mention translate().
I have a hard time believing I am the first one to notice those...
|
by: bullockbefriending bard |
last post by:
I've done all the requisite profiling and thought fairly deeply about
the efficiency of my python code, but am still going to have to speed
up the innermost guts of what I am doing.
Essentially,...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |