[Tutor] suggestion for an editor

Wayne Werner wayne at waynewerner.com
Thu Jul 19 13:24:34 CEST 2012


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


More information about the Tutor mailing list