On Thu, 19 Jul 2012, Bala subramanian wrote:
Friends,
At present i write programs using vi editor. I am interested to change to
something else. My specific need is that i want to select a portion/small
segment of my
program (for eg. a nested loop) and then monitor processing time it takes for
that portion while i run the program. By this i hope to find the segment that
takes
time and modify to achieve better speed. Can someone please share their
experience.
I'm not sure how vi has anything to do with the speed of your program(!)
For performance measurements you should look into the Timeit module. How
long does it take your program to run currently? After all, premature
optimisation is the root of all evil...
-Wayne
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor