Slowest column bottlenecks other column for addcolumn search function

Discussion related to "Everything" 1.5 Alpha.
Post Reply
nikov
Posts: 131
Joined: Fri Dec 24, 2021 10:31 am

Slowest column bottlenecks other column for addcolumn search function

Post by nikov »

Greetings,
In Everything, slowest column is bottlenecking other column if they are added by addcolumn search function. ( Bug ? )

Explanation with an example:
Suppose, I search the following:

Code: Select all

ext:lnk addcolumn:a:1 a-label:="Simple_Text" a:="simpleText" addcolumn:b:2 b-label:="Original_Length" b:=getproperty($shortcut-target:,"Length")
Which adds two columns:
"Simple_Text": This column is supposed to be very fast to sort because this column is populated with just the "simpleText" text.
"Original_Length": This column can be slow to sort because this column is populated with the value of an unindexed property using getproperty().

Then if I click the "Simple_Text" column's header for sorting, Everything takes almost 30 seconds in a non-responsive way to sort only about 200 items. But it was supposed to be sorted very quickly because only the "Simple_Text" column's sort was requested.

Here, maybe Everything is trying to sort the "Original_Length" column too, which I did not click. The "Original_Length" column is bottlenecking the expected very fast sort speed of "Simple_Text" column.

Note that, this may happen for only once after every computer "log off" or "restart" event, maybe due to sorts are somehow cached and subsequent sorts are done with the help of the cache.

Thank you.
void
Developer
Posts: 16740
Joined: Fri Oct 16, 2009 11:31 pm

Re: Slowest column bottlenecks other column for addcolumn search function

Post by void »

Thank you for your post nikov,

Currently, Everything will perform assignment for all your custom columns when sorted.

I will look into making Everything only gather the required columns.
Post Reply