Skip to content

Commit

Permalink
Improve mem.py speed
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Dudek <[email protected]>
  • Loading branch information
mtdudek committed Nov 15, 2024
1 parent e816afa commit a4f1816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rowhammer_tester/scripts/mem.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def memtest(wb, length, *, generator, base=None, verbose=None, burst=255):
if base is None:
base = wb.mems.main_ram.base

refdata = [next(generator) for _ in range(length)]
refdata = list(itertools.islice(generator,length))
memwrite(wb, refdata, base=base, burst=burst)

data = memread(wb, length, base=base, burst=burst)
Expand Down

0 comments on commit a4f1816

Please sign in to comment.