The reason is the Filesystem. The OS caches data that was read from
disk in memory, so if you read the same file over and over again it is
read from disk the first time every following time it takes it out of
the memory.

That means only the first result gives you the actual time it takes to
access the disk. One workaround is to make a file that is too big for
your memory, or your OS's FS Cache another is to read a lot different
files. the

That the time goes down the more often you try is explained by fact
that the 2nd to n'th read take a lot less time (as David showed) so
the 'long time' of the first run gets less and less impact.

--
Heinz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to