Skip to content

Reduce string allocations in ExecutionScopes #2304

Open

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.

Activity

  1. added
    researchOpen questions requiring either research or requirements gathering
    performancePerformance-related improvements or regressions
    on Jan 21, 2026
  2. moved this to Backlog in Starkneton Jan 21, 2026
  3. changed the title [-]String allocations in `ExecutionScopes`[/-] [+]Reduce string allocations in `ExecutionScopes`[/+] on Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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