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
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
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
> 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
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
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.
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
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
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