clipboard: any detriments to its use?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

clipboard: any detriments to its use?

Post by therube »

clipboard:

is there any "detriment" to clipboard:, while monitoring, always ?
rather then if it only actually updating when window/tab has actual focus ?

as in

if window does not have focus, monitor, but make no changes till brought into focus
& then further
if window does have focus, monitor, but make no changes until actual tab is focused
(& then, only with the most recent clip, obviously)


or is it so insignificant it's not worth the effort

?
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: clipboard: any detriments to its use?

Post by void »

clipboard:
is there any "detriment" to clipboard:, while monitoring, always ?
No, Everything uses AddClipboardFormatListener.

Everything will receive an event when the clipboard changes.
Monitoring the clipboard will have no impact on system performance.

Everything re-searching due to a clipboard change might have a impact on system performance.


rather then if it only actually updating when window/tab has actual focus ?
Only the active tab for each window is updated immediately on clipboard change.
Tabs that are inactive only update when activated. (if there was a clipboard change while the tab was inactive)



I will consider an option to only re-search when the window is in the foreground.
Maybe as a search function? is-in-foreground: ?
It is rather useful to have Everything update when it's not in the foreground.
Thank you for the suggestion.
win32
Posts: 8
Joined: Fri Mar 19, 2021 11:48 am

Re: clipboard: any detriments to its use?

Post by win32 »

I think it would be on the very safe side to not update minimized windows and background tabs.

I have several windows/tabs open and I was thinking about making a similar post.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: clipboard: any detriments to its use?

Post by void »

Everything will only monitor the clipboard if you use clipboard: in your search.
Remove the clipboard: search to avoid monitoring the clipboard.

Only the text "clipboard:" is added to your search history.
The clipboard content is not added to your search history.

Only active tabs will update to changes to the clipboard.
Inactivate tabs will not update until they are made active.
win32
Posts: 8
Joined: Fri Mar 19, 2021 11:48 am

Re: clipboard: any detriments to its use?

Post by win32 »

I apologize for not being precise enough and off topic.
I just meant the open windows that depict changes on the disk all the time. Although, I haven't measured how costly it is, it certainly is when I make a change on omit filters and every window does a clean re-query.
That's were my comment was referring to, even for generic queries without any use of the clipboard,
> it would be on the very safe side to not update minimized windows and background tabs.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: clipboard: any detriments to its use?

Post by void »

It's not really possible with Everything.
Queries cannot have stale results.
All queries are synced with the database.

Any change made to the database is immediately reflected to all queries.
Everything is very efficient at doing this so you shouldn't notice any performance issues, even with 100s of windows/tabs opened.

Changing omit filters can be expensive and is applied to all queries that have omit results enabled.
win32
Posts: 8
Joined: Fri Mar 19, 2021 11:48 am

Re: clipboard: any detriments to its use?

Post by win32 »

Awesome, thanks for your reply!
Post Reply