Re: One Little Thing



"Snit" <CSMA@xxxxxxxxxxxxxxxxxxxxx> wrote in message news:C275B893.81C38%CSMA@xxxxxxxxxxxxxxxxxxxxxxxx
"Dan Johnson" <danieljohnson@xxxxxxxxxxxx> stated in post
1350prbr2g31201@xxxxxxxxxxxxxxxxxx on 5/20/07 8:21 AM:
Ah, well, it's still an eternity to the computer. :D

Half a second from the time I changed the name of the folder to the time it
shows up in a search does not seem bad to me... especially on older hardware
while I was running other software.

Sure. But it's still fundamentally a background indexer, like
the one in XP (but quicker).

[snip]
As long as that is so (and it's not with some apps, like Pages), then
the file gets indexed only once.

I just tried it - created a file in Pages and added the text "zygwartz". I
pressed save it as "x" - it took it a second or so to save, but when it did
the file showed up almost instantly in the Spotlight search. I then changed
the text and save it again - it disappeared from the search (but a backup
appeared). I then copied a few pages of Lorem Ipsum text and added the
"zygwartz" to the end of the text. Again, almost instant (within the half
second or so)

Pages is notoriously slow, and you can see in your second example
how this causes Spotlight to do extra work.

Spotlight indexed it *during* the save, which is when it saw the
backup present, and also was unable to index the original.
Then it did it all again after the save. It did at least twice as
much work than it really needed to, in this case, in order to
keep the live search live.

Vista wouldn't have done the extra index, unless the disk went
idle for a while mid-save. I don't recall if Pages does that.

[snip]
That's not the same mechanism, as I understand it- it's using
kqueues to detect changes in the displayed folder, and it refreshes
if it sees any. No indexing is needed, and there's no overhead
imposed unless you actually do have a Finder window open.

I did, of course, have the Finder window open - maybe I will try it again
but save text in the Terminal. Not sure what that would prove, but, hey,
its an added variable!

If you have no Finder windows open, you can't see any Finder
windows update. Or so I imagine. :D

[snip]
Do you really need to refresh searches often?

I have searches open while waiting for people to use a drop box - so I have
had use for it.

I see. That could be useful- if you want to monitor several
drop-boxes at once. Otherwise a normal Finder window
would save you a whole (er) half a second. :D

[snip]
If so, that suggests that it's not a deliberate delay, just the time
required for the Spotlight machinery to work.

Well, time to save and add to index and be found in the index and discovered
by the Finder and be shown...

Yeah, there's a fair amount of slack in there.

But that's probably a good thing. The tigher the tolerances are here,
the more spurious reindexes and redraws happen. Each one has
a cost.

.



Relevant Pages

  • Re: Undo
    ... without leaving it to us to infer what he means or to drag the ... I.e., in what folder. ... Spotlight in Finder, ... and Spotlight in a Finder window is for when I need to move or ...
    (comp.sys.mac.apps)
  • Re: More on apps, shelf space
    ... some Windows fan argues that regular users will never ... The cluttered bits where users will probably never have to install ... application package and discovered there through a Spotlight query. ...
    (comp.sys.mac.advocacy)
  • Re: Aero and Aqua
    ... on Windows you do get a consistent UI for this: ... uninstaller or do *anything* else. ... Application folder so it is not available to other users. ...
    (comp.sys.mac.advocacy)
  • Re: XP footprint on the new class of ultra low cost PCs
    ... I am Technology Director of a public charter school in Massachusetts, ... I configured Office to install on the D: ... The folder is currently ...
    (microsoft.public.windowsupdate)
  • Re: One Little Thing
    ... Half a second from the time I changed the name of the folder to the time it ... But it's still fundamentally a background indexer, ... the file showed up almost instantly in the Spotlight search. ... backup present, and also was unable to index the original. ...
    (comp.sys.mac.advocacy)