Here's the steps I'm using to reproduce the lag issue -

*** begin steps ***

1) Option Space (opens QS Window)
2) First pane type NET.  If there is a lag problem you'll know it
here.
3) First pane type HOME. Sometimes it lags other times not.
4) Close QS window.

5) Repeat steps 1 - 4.  Probably no lag.

6) Repeat steps 1 and 2, except type GET IP instead of NET, and run
the script (press enter).
(probably need the extra scripts plugin for get ip to work.)

7) Repeat steps 1 - 4. Lag again.

*** end of steps ***

Here's the thing, if your a programmer and QS is experiencing lag
issues, then set a break point in function
- (NSArray *)validActionsForDirectObject:(QSObject *)dObject
indirectObject:(QSObject *)iObject
of QSActionProvider_EmbeddedProviders.m
and step debug through the function.  When you get to the call
[[NSWorkspace sharedWorkspace] mountedLocalVolumePaths]
you'll get the delay.

Another function to do the same on is
+ (NSImage *)imageWithPreviewOfFileAtPath:(NSString *)path ofSize:
(NSSize)size asIcon:(BOOL)icon
of NSImage+QuickLook.m
and you'll get the delay when
CGImageRef ref = QLThumbnailImageCreate(kCFAllocatorDefault,
                                            (CFURLRef)fileURL,
                                            CGSizeMake(size.width,
size.height),
                                            (CFDictionaryRef)dict);
is call.

These functions and some others are being negatively effected when
they are dealing with file types of UTI (Uniform Type Identifier)
"com.apple.mount-point", ie. local mount volumes.  That's the reason
for typing NET or HOME in the first panel of QS, you get a nice hit on
a UTI.

Anyways, the QS functions are fine, and now that I've been investing
this I can also get the same lag issues to show up in Path Finder,
just by selecting "/net" or "/home" (doing step 6 above helps reset
something that will cause PF to lag as described.

Oh, and "/net" and "/home" are hidden UTI's created by "/etc/
auto_master".  Read more about UTI at
http://developer.apple.com/Mac/library/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_intro/understand_utis_intro.html#//apple_ref/doc/uid/TP40001319-CH201-SW1
and
http://rajeev.name/blog/2007/11/22/autofs-goodness-in-apples-leopard-105-part-i/

If anyone makes any leeway on this please keep us informed.

TIA,
Paul

Reply via email to