grid: prefetch cells in grid_row()

This commit is contained in:
Daniel Eklöf 2019-07-10 19:52:30 +02:00
parent 1a21a5fb29
commit decb4503bf
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 5 additions and 4 deletions

1
grid.h
View file

@ -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;
}