Skip to content

Optimize matchAliases #41

@anatol

Description

@anatol

Arch's 5.11.2 kernel has ~29K module aliases. booster generator tries to match all devices against all the aliases. So it has to call path.Match function about one million times. And path.Match function is not particularly fast.

As a result ~70% of an image generation time is spent in matchAlias function. Optimize this codepath. Maybe we can sort the aliases somehow and then quickly pre-match using some fast string comparison?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions