Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete: sort by number of usages #395

Open
tleb opened this issue Feb 25, 2025 · 0 comments
Open

Autocomplete: sort by number of usages #395

tleb opened this issue Feb 25, 2025 · 0 comments
Labels
backend HTTP server related

Comments

@tleb
Copy link
Member

tleb commented Feb 25, 2025

Searching for clk_ gives:

clk_1000_1200_src
clk_1000_1440_src
clk_108MHz
clk_125
clk_12_24m
clk_12_24m_in
clk_12m
clk_12m_out_groups
clk_1440_1200_src
clk_168m

But those are almost useless. Instead, we could count the number of references for each symbols that matches the search. Code is here. That would raise to the top the subsystem defs that get used by many.

Some benchmarking would be required, but we don't see many requests on that endpoint so we have no reason to worry as long as the duration isn't anything outside the ordinary.

@tleb tleb added the frontend UI-related label Feb 25, 2025
@fstachura fstachura added backend HTTP server related and removed frontend UI-related labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend HTTP server related
Projects
None yet
Development

No branches or pull requests

2 participants