Re: [Tutor] question about run time

2006-05-03 Thread Hugo González Monteverde
I have made scripts that work on many files (sometimes just some tens) and appears that filesystem structure caching in Linux is very efficient. That's why it runs very fast later. I've seen this in Slackware, Debian, and RH, so I guess it's just a linux/FS/disk thing. Try doing 'find' combin

Re: [Tutor] question about run time

2006-05-02 Thread Danny Yoo
Hi John, You can try something like the profiler, which will say where most of the program's time is being spent. We can find documentation on the Python profiler here: http://www.python.org/doc/lib/profile.html >From a rough, low-level standpoint, there are tools like 'top' on Linux

Re: [Tutor] question about run time

2006-05-02 Thread Ertl, John
odeAmount) print "Your memory usage is %s KB and your inode usage is %s" % (myUse.memTotal,myUse.inodeTotal) print "Your memory limit is %s KB and your inode limit is %s" % (myUse.memLimit, myUse.inodeLimit) if myUse.memLimit < myUse.memTotal or myUse.inodeLimit < m

Re: [Tutor] question about run time

2006-05-02 Thread Danny Yoo
> I have been using python for sometime...and occasionally I noticed > significant delay before the code would run but unitl now I have been > able to write it off to other things. Now I have a short script that I > wrote to check some files and print out a few lines. > > I have noticed that

Re: [Tutor] question about run time

2006-05-02 Thread Ertl, John
Cc: tutor@python.org Subject:Re: [Tutor] question about run time Ertl, John wrote: > Kent, > > The files are very small (a few hundred lines). Maybe it is a network > issue? But then why is it always slow the first time in the morning? I > don't know network st

Re: [Tutor] question about run time

2006-05-02 Thread Kent Johnson
iginal Message- > From: Kent Johnson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 02, 2006 12:06 PM > To: Ertl, John > Cc: tutor@python.org > Subject: Re: [Tutor] question about run time > > Ertl, John wrote: >> I have been using python for sometime.

Re: [Tutor] question about run time

2006-05-02 Thread Ertl, John
EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 12:06 PM To: Ertl, John Cc: tutor@python.org Subject:Re: [Tutor] question about run time Ertl, John wrote: > I have been using python for sometime...and occasionally I noticed > significant delay before the code would run but unitl now

Re: [Tutor] question about run time

2006-05-02 Thread Kent Johnson
Ertl, John wrote: > I have been using python for sometime...and occasionally I noticed > significant delay before the code would run but unitl now I have been able > to write it off to other things. Now I have a short script that I wrote to > check some files and print out a few lines. > > I have

[Tutor] question about run time

2006-05-02 Thread Ertl, John
I have been using python for sometime...and occasionally I noticed significant delay before the code would run but unitl now I have been able to write it off to other things. Now I have a short script that I wrote to check some files and print out a few lines. I have noticed that usually the fir