Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Speedup quick open - #5166

Merged
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
jasonLaster:speedup-quick-open
Jan 24, 2018
Merged

Speedup quick open#5166
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
jasonLaster:speedup-quick-open

Conversation

@jasonLaster

@jasonLaster jasonLaster commented Jan 21, 2018

Copy link
Copy Markdown
Contributor

Associated Issue: #5085 #4996

Summary of Changes

  • limit fuzz aldrin to 1000 results
  • limit result list to 100 items
  • show tabs on initial render... not sure about the UX here...

Slow version

screen shot 2018-01-21 at 10 29 25 am

Fast version

screen shot 2018-01-21 at 10 53 09 am

@lukaszsobek

lukaszsobek commented Jan 21, 2018

Copy link
Copy Markdown
Contributor

Awesome speed increase!

Based on search engine behavior it feels like we can limit the number of results even more. E.g. a result on position 41 only gets 0.07% of clicks, so going up to 50 seems feasible as a user will have refined his search by that time anyway (or at least 993 in 1000 users will have).

@wldcordeiro

Copy link
Copy Markdown
Contributor

show tabs on initial render... not sure about the UX here...

It's a nice addition, one suggestion though would be to do an tabs.length === 0 ? first50Sources : tabs to avoid having nothing at all.

Comment thread src/components/QuickOpenModal.js Outdated
const [baseQuery] = query.split(":");
const results = filter(this.props.sources, baseQuery, { key: "value" });
const results = filter(this.props.sources, baseQuery, {
key: "value",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Realized we always use the same options maybe putting them as a constant at the top of the file and reusing instead of a new object each time.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah - i can give that a go

@jasonLaster

Copy link
Copy Markdown
Contributor Author

tabs.length === 0 ? first50Sources : tabs

was thinking that too

@jasonLaster

Copy link
Copy Markdown
Contributor Author

what do you think of hiding the results count... i dont think other editors show it?

we can then be more aggressive about limiting results

@wldcordeiro

Copy link
Copy Markdown
Contributor

what do you think of hiding the results count... i dont think other editors show it?

I like that idea. I just checked the Atom panel and it doesn't show any count it just shows an error "Project is empty" message.

@jasonLaster
jasonLaster merged commit b034d6f into firefox-devtools:master Jan 24, 2018
jasonLaster added a commit to jasonLaster/debugger.html that referenced this pull request Jan 25, 2018
jasonLaster added a commit that referenced this pull request Jan 26, 2018
jasonLaster added a commit that referenced this pull request Jan 27, 2018
jasonLaster added a commit that referenced this pull request Jan 27, 2018
jasonLaster added a commit that referenced this pull request Jan 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants