Skip to content

Wasteful clones of URLs made in various places #872

@heaths

Description

@heaths

To work with Rust's borrow checker, we often have to make clones of URLs or other strings in order to capture in an Fn or FnMut e.g., async move { }. See #867 (review) for one such place and discussion.

We could wrap it in an Arc but that also might be overkill. What other options might we have to avoid cloning potentially large strings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    CodeGenIssues that relate to code generationpillar-performanceThe issue is related to performance, one of our core engineering pillars.

    Type

    No type

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions