Skip to content

Check attribute trimming performance #5572

@loewenheim

Description

@loewenheim

Currently attribute trimming always transforms the attributes map into a vector and sorts it by size. If the attributes don't need to be trimmed, this is wasted effort. It may be cheaper to check the size of the collection once in the beginning and immediately return if the attributes fit within the remaining budget.

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