Skip to content

Only perform query when there's input#75

Open
medavox wants to merge 1 commit intoreblws:mainfrom
medavox:master
Open

Only perform query when there's input#75
medavox wants to merge 1 commit intoreblws:mainfrom
medavox:master

Conversation

@medavox
Copy link
Copy Markdown

@medavox medavox commented Apr 10, 2019

Don't run a search query on an empty string.

This removes an unnecessary search before the user types their query,
which is slow (edit: about 3 seconds) for my ~800 tabs over 2 windows (on x64 Firefox 66, Debian-flavour Linux).

Reduces the time-to-search when opening the popup window.

(I literally just moved the curly brace for the else statement on isSearchEmpty, indented the query block, and added a comment about this).

@reblws reblws self-assigned this Feb 13, 2020
Copy link
Copy Markdown
Owner

@reblws reblws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I'll put this in for 0.4.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants