mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
grid: prefetch cells in grid_row()
This commit is contained in:
parent
1a21a5fb29
commit
decb4503bf
2 changed files with 5 additions and 4 deletions
1
grid.h
1
grid.h
|
|
@ -20,6 +20,7 @@ grid_row(struct grid *grid, int row_no)
|
|||
grid->rows[real_row] = row;
|
||||
}
|
||||
|
||||
__builtin_prefetch(row->cells, 1, 3);
|
||||
return row;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue