Re: Method much slower than function?
The first time you read the file, it has to read it from disk.
I can verify this type of behavior when reading large files. Opening
the file doesn't take long, but the first read will take a while
(multiple seconds depending on the size of the file). When the file is
opened a second time, the initial read takes significantly less time.
Matt
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.
cache in RAM.
the file doesn't take long, but the first read will take a while
(multiple seconds depending on the size of the file). When the file is
opened a second time, the initial read takes significantly less time.
Matt
Comment