diff --git a/CHANGELOG.md b/CHANGELOG.md index 94710b2a69..d7ef2c2e91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ #### Upcoming Changes +* perf: optimize instruction cache allocations by using `VirtualMachine::load_data` [#1441](https://github.com/lambdaclass/cairo-vm/pull/1441) + * fix: ec_recover hints no longer panic when divisor is 0 [#1433](https://github.com/lambdaclass/cairo-vm/pull/1433) * feat: Implement the Serialize and Deserialize traits for the CairoPie struct [#1438](https://github.com/lambdaclass/cairo-vm/pull/1438) diff --git a/vm/src/vm/runners/cairo_runner.rs b/vm/src/vm/runners/cairo_runner.rs index 6fac3dd69a..0237be0fd2 100644 --- a/vm/src/vm/runners/cairo_runner.rs +++ b/vm/src/vm/runners/cairo_runner.rs @@ -383,8 +383,7 @@ impl CairoRunner { offset: prog_base.offset + entrypoint, }; self.initial_pc = Some(initial_pc); - vm.segments - .load_data(prog_base, &self.program.shared_program_data.data) + vm.load_data(prog_base, &self.program.shared_program_data.data) .map_err(RunnerError::MemoryInitializationError)?; // Mark all addresses from the program segment as accessed