sibling: vs. fileexists:

Discussion related to "Everything" 1.5.
Post Reply
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

sibling: vs. fileexists:

Post by NotNull »

I noticed that fileexists: is quite a bit faster than sibling.
Would it be possible to equip sibling: with the same turbo-engine as fileexists:?
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: sibling: vs. fileexists:

Post by void »

sibling: does a partial search. (slow)
fileexists: does an exact lookup.

I have put on my TODO list to optimize sibling: when a simple filename lookup is specified.
Thank you for the suggestion.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: sibling: vs. fileexists:

Post by NotNull »

Thanks!

(it has been a while, but I think fileexists:*text* was faster than sbling:text too. Not sure though..)
Post Reply