Which is More Efficient?

Dustan DustanGroups at gmail.com
Fri May 19 06:54:47 EDT 2006


Fredrik Lundh wrote:
> Dustan wrote:
>
> > Obviously it takes a geek to know you have to time it, as opposed to
> > any other task you could be talking about.
>
> wasn't the original question "my program uses a lot of CPU, and I want
> to make it more efficient" ?  what does "a lot of CPU" and "more
> efficient" mean to you, and how do you know that your program uses "a
> lot of CPU" ?

The task manager says "CPU Usage: 100%" when the program is running,
and only when the program is running.

Efficiency is a measure of 2 things: CPU usage and time. If you measure
just time, you're not necessarily getting the efficiency.

> 
> </F>




More information about the Python-list mailing list