Skip to content

Commit

Permalink
feat: optimize hint_words
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-sun committed Jan 9, 2025
1 parent d240f25 commit ec1a578
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extensions/native/compiler/src/ir/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,15 +528,15 @@ impl<C: Config> Builder<C> {
let arr = self.dyn_array(vlen);

// Write the content hints directly into the array memory.
self.range(0, vlen).for_each(|i, builder| {
self.iter(&arr).for_each(|val, builder| {
let index = MemIndex {
index: i,
index: 0.into(),
offset: 0,
size: 1,
};
builder
.operations
.push(DslIr::StoreHintWord(arr.ptr(), index));
.push(DslIr::StoreHintWord(Ptr { address: val }, index));
});

arr
Expand Down

0 comments on commit ec1a578

Please sign in to comment.