Skip to content

Optimization: don't use std::string in metadata #461

@anarthal

Description

@anarthal

metadata uses internally several instances of std::string to hold its string members. When performing benchmarks that query few rows with many fields, default-constructing these strings shows up in the profiler. Note that with metadata_mode::minimal (the default), no string copying takes place. Nonetheless, the cost is non-zero. We can change the strings to a std::vector and multiple offsets with no API change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions