Hi,

I am trying to speed up some VFS access.  I was just
wondering if this:

error = VFSFileDBInfo(fileRef, NULL, NULL, NULL, NULL,
                      NULL, NULL, NULL, NULL,
                      NULL, &type, &localCreator,
                      NULL);

is faster than this:

error = VFSFileDBInfo(fileRef, NULL, NULL, NULL, NULL,
                      NULL, NULL, NULL, NULL,
                      NULL, &type,
                      NULL, NULL);
if(error == errNone && type == sysFileTApplication) {
   VFSFileDBInfo(fileRef, NULL, NULL, NULL, NULL,
                 NULL, NULL, NULL, NULL, NULL, NULL,
                 &localCreator, NULL);
   // do some other stuff
}

It turns out that I only need the localCreator if the
file is of type sysFileTApplication.  So, I'm trying
to not get localCreator unless I need to and hopefully
save some time.

Thanks,

Mike McCollister

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to