Skip to content

File search via @ symbol is very slow in large projects, possibly due to lack of debounce and search triggering on every character #2772

@vpckso

Description

@vpckso

Describe the bug:

When using the "@" symbol to search for files in large projects, the search functionality is extremely slow and unresponsive. This significantly impacts the development experience and productivity.

Expected behavior:

The file search should be responsive and provide quick results even in large codebases, with proper debouncing to avoid excessive processing on every keystroke.

Actual behavior:

  • Searching for files with "@" in large projects is very slow
  • The search seems to trigger on every character input without proper debouncing
  • UI becomes unresponsive during search operations
  • Performance degrades significantly as project size increases

Additional context:

It appears that the file search functionality may not be implementing proper debouncing, causing it to execute search operations on every keystroke. In large projects, this results in multiple rapid-fire search requests that create performance bottlenecks and make the feature unusable.

Consider implementing:

  1. Proper debouncing
  2. Optimizing file search algorithms for large codebases
  3. Caching mechanisms to improve response times

Environment:

  • OS: Linux
  • OpenCode Version: 0.11.3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions