Re: First slow, then fast
Re: First slow, then fast
- Subject: Re: First slow, then fast
- From: Lorenzo <email@hidden>
- Date: Mon, 04 Aug 2003 02:51:22 +0200
Hi,
thank you for replying.
Do you really think the system puts the data into the cache?
IF so, how does my app knows that the data it needs at the second search are
the same data contained in the cache?
Or did you mean the function is in the cache?
May you please let me understand?
And up above, is a way to make the first search as fast as the next
searches?
Best Regards
--
Lorenzo
email: email@hidden
>
From: Creed Erickson <email@hidden>
>
Date: Sun, 03 Aug 2003 17:49:44 -0700
>
To: Lorenzo <email@hidden>
>
Cc: email@hidden
>
Subject: Re: First slow, then fast
>
>
>
On Sunday, August 3, 2003, at 03:57 PM, Lorenzo wrote:
>
>
> The first time I launch this search, it takes 15 seconds.
>
> The second time, and all the next times it takes 2 or 3 seconds.
>
> WHY?
>
>
Because the first time around the file system caches enormous amounts
>
of data from the directories and files. The second time around the file
>
system is able to pull this data from cache rather than having to read
>
it from disk. The fastest I/O is no I/O. Your first execution
>
"pre-heated" the cache for the second run.
>
>
>
> I don't think it's because of the cache, because I start a search any
>
> time.
>
>
Huh? I don't understand this comment. What time you start a search has
>
nothing to do with it. It is a function of what file system data is in
>
the cache.
>
---
>
Creed Erickson <email@hidden>
>
"Not a shred of evidence exists in favor of the idea that life is
>
serious."
>
- Brendan Gill
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.