A
ahmedmaarouf2002
Hello,
I use some Forth code to access the contents of many documents for an
analysis. A folder typically contains 20,000 or more small(~few KB's
each) documents. I open each document read-only, then use a read-file
to get its contents. Here is the problem: the first time this runs it
takes so long to do the reads. The cpu load is very small(with a very
noisy HDD head) If I close my application and launch it again for a new
run, the reading is much MUCH faster. Subsequent runs seem to have the
high performance of the second one. I try the same code with the same
documents on two machines, a desktop with 2GB of RAM and a 180GB NTFS
drive, and a laptop with 768 MB of RAM and a 30GB NTFS drive, both
running XP. Same behavior is noticed. I tried to use small
folders(~1000 docs), and I still got the same story. I defragmented
both drives, but it didn't help. I have the indexing service turned
off, as well as system restore
I have recently moved to XP. I donot recall this being a problem on
2000. Is there a fix to overcome such terribly slow first-time
performance?
Help is most appreciated...
Thanks,
Ahmed
I use some Forth code to access the contents of many documents for an
analysis. A folder typically contains 20,000 or more small(~few KB's
each) documents. I open each document read-only, then use a read-file
to get its contents. Here is the problem: the first time this runs it
takes so long to do the reads. The cpu load is very small(with a very
noisy HDD head) If I close my application and launch it again for a new
run, the reading is much MUCH faster. Subsequent runs seem to have the
high performance of the second one. I try the same code with the same
documents on two machines, a desktop with 2GB of RAM and a 180GB NTFS
drive, and a laptop with 768 MB of RAM and a 30GB NTFS drive, both
running XP. Same behavior is noticed. I tried to use small
folders(~1000 docs), and I still got the same story. I defragmented
both drives, but it didn't help. I have the indexing service turned
off, as well as system restore
I have recently moved to XP. I donot recall this being a problem on
2000. Is there a fix to overcome such terribly slow first-time
performance?
Help is most appreciated...
Thanks,
Ahmed