Skip to content

Autocomplete: sort by number of usages #395

@tleb

Description

@tleb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendHTTP server related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions