Skip to content

Commit

Permalink
perf: use VirtualMachine::load_data at initialization (lambdaclass#1441)
Browse files Browse the repository at this point in the history
Co-authored-by: fmoletta <[email protected]>
  • Loading branch information
Oppen and fmoletta authored Jan 26, 2024
1 parent 0a39534 commit 0ea638f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

* feat: Add `print_output` flag to `cairo-1` crate [#1575] (https://github.com/lambdaclass/cairo-vm/pull/1575)

* bugfixes(BREAKING): Fix memory hole count inconsistencies #[1585] (https://github.com/lambdaclass/cairo-vm/pull/1585)
Expand Down
3 changes: 1 addition & 2 deletions vm/src/vm/runners/cairo_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,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
Expand Down

0 comments on commit 0ea638f

Please sign in to comment.