Skip to content

TableCommon.getCols() can be memorized #53604

@ekexium

Description

@ekexium

Enhancement

Every call of getCols() re-calculates the result, which is time-consuming. Since we assume the schema of the table won't change in the lifetime of a TableCommon struct, we can memoize the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions