Skip to content

Commit 456cf39

Browse files
committed
Adding comment
1 parent b1ab4f0 commit 456cf39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vapid/soa.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ namespace vapid {
148148
}
149149

150150
void prepare_tmp() {
151+
// sorting requires the temporary buffers in data_tmp_
152+
// this function pre-allocates those temporary buffers
153+
// so that no allocation is done during the sort call
151154
return resize_impl(std::index_sequence_for<Ts...>{}, data_tmp_, size());
152155
}
153156

0 commit comments

Comments
 (0)