Re: Method much slower than function?



On 2007-06-14, idoerg@xxxxxxxxx <idoerg@xxxxxxxxx> wrote:

The method takes > 10 seconds, the function call 0.041 seconds!

What happens when you run them in the other order?

The first time you read the file, it has to read it from disk.
The second time, it's probably just reading from the buffer
cache in RAM.

--
Grant Edwards grante Yow! Catsup and Mustard
at all over the place! It's
visi.com the Human Hamburger!
.



Relevant Pages

  • Re: nice story [link]
    ... restore the two backups. ... The second time the affected tree was vast and the manual inspection ... The first time I put a new hard disk in and restored to that, ... But experience the first time gave me confidence. ...
    (uk.rec.sheds)
  • Re: nice story [link]
    ... restore the two backups. ... The first time I put a new hard disk in and restored to that, ... But experience the first time gave me confidence. ... Tyger Burning Bright ...
    (uk.rec.sheds)
  • Word has encountered a problem
    ... I get this message the first time I open a file in Word after Windows startup ... Usually this is because the disk or floppy disk is too small for the file or ... If the RAM memory is low, ... file to another drive or request permissions from the administrator to save ...
    (microsoft.public.word.docmanagement)
  • Word has encountered a problem
    ... I get this message the first time I open a file in Word after Windows startup ... Usually this is because the disk or floppy disk is too small for the file or ... If the RAM memory is low, ... file to another drive or request permissions from the administrator to save ...
    (microsoft.public.word.application.errors)
  • Re: Minimum specs
    ... > put Debian on, using a minimalistic WM, such as xfce or Fluxbox. ... I am running Sarge on a Pentium 90 with 48MB of RAM, ... current configuration it has only a couple of MB swapped to disk. ... while to start the first time after boot). ...
    (Debian-User)