[Feat Request] Add minimum size to File Content Indexing

Discussion related to "Everything" 1.5.
Post Reply
biship
Posts: 7
Joined: Wed Oct 04, 2023 3:35 pm

[Feat Request] Add minimum size to File Content Indexing

Post by biship »

Thanks to all the repos I clone, I have many 0-4 byte files, most of which are empty (or have just a windows CRLF).
I don't really want or need to index them.
Also, I don't know if just the file name actually contributes to a memory overhead if it's included in the indexed list.
Are you able to add a minimum size param to the content indexing options?
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: [Feat Request] Add minimum size to File Content Indexing

Post by void »

I don't know if just the file name actually contributes to a memory overhead if it's included in the indexed list.
There is a 8-17 byte overhead for storing content.
8 bytes for a reference pointer.
0-9 bytes for the length. (0 if there's no content,1 if the length < 255, 9 if the length is >= 255)

If you index 1 million empty files you are only looking at an extra 8MB of ram usage.


Are you able to add a minimum size param to the content indexing options?
I will consider an option to do this.
Thank you for the suggestion.
biship
Posts: 7
Joined: Wed Oct 04, 2023 3:35 pm

Re: [Feat Request] Add minimum size to File Content Indexing

Post by biship »

Hi void, did you ever do this?
I have thousands of 0-8 byte files which I'll never search contents for.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: [Feat Request] Add minimum size to File Content Indexing

Post by void »

No.
I might add support for a minimum size in a future release.

For now, please consider a large content macro:
In Everything, from the Search menu, click Add to filters...
Change the Name to: Large Content
Change the Search to:
size:>8 content:$param:

Change the Macro to: lc

Now you can search for lc: instead of content:
lc: will only match files with content and a file size larger than 8 bytes.
biship
Posts: 7
Joined: Wed Oct 04, 2023 3:35 pm

Re: [Feat Request] Add minimum size to File Content Indexing

Post by biship »

Thanks, thats working!
Post Reply