Skip to content

Search: initial file search seems to be slow #79909

Closed
microsoft/azuredatastudio
#7206
@bpasero

Description

@bpasero

My target workspace is our source with all node modules. All search.exclude is disabled and the .gitignore as well to make sure really every file is searched.

I run out of sources and have a word "index" in my clipboard to paste into quick open.

I measure:

  • the time it takes from spawning the RipGrep command until the done handler is called
  • the time it takes from starting the search until the results are all collected

Upon cold start I see:

  • RipGrep takes: ~500ms
  • Overall operation takes: ~3500ms

Subsequent operations on the same search seem to trigger our cache and I see:

  • RipGrep takes: ~1000ms
  • Overall operation takes: ~500ms

What I am wondering is: how come the very first initial search (that does not seem to trigger our cache) is taking so long from when all results are collected until they are on the model side of things.

This may be me measuring something wrong, but I think it is worth looking into this again if we have regressed for quick open file search performance.

Metadata

Metadata

Assignees

Labels

perfsearchSearch widget and operation issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions