8000 Support string_view for string constants in C++ · Issue #142 · Snapchat/djinni · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support string_view for string constants in C++ #142
Open
@louiswins

Description

@louiswins

Right now djinni creates a static std::string const for each string constant. This adds a bunch of static initializers which perform allocations and copy data onto the heap. This increases startup times (static initializers run before main) when we could just reference that data directly in a constexpr std::string_view for free.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0