Skip to content

Reduce string allocations in ExecutionScopes #2304

@gabrielbosio

Description

@gabrielbosio

Line 59 of exec_scopes.rs allocates String for every variable: https://github.com/lambdaclass/cairo-vm/blob/8d4858689e01d439633375d70b8dc12053680a6a/vm/src/types/exec_scope.rs#L59

Use Cow<'static, str> instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance-related improvements or regressionsresearchOpen questions requiring either research or requirements gathering

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions