mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-15 20:38:23 +01:00
fix: use const reference for to_calc in InterpolationModule to improve performance
This commit is contained in:
parent
536ebdd351
commit
9b9fd898b7
@ -120,7 +120,7 @@ void InterpolationModule::tryInterpolation(WorkPackage &work_package) {
|
||||
const int cell_id = static_cast<int>(work_package.input[wp_i][0]);
|
||||
|
||||
if (!to_calc_cache.contains(cell_id)) {
|
||||
std::vector<std::int32_t> to_calc = dht_instance.getKeyElements();
|
||||
const std::vector<std::int32_t> &to_calc = dht_instance.getKeyElements();
|
||||
std::vector<std::int32_t> keep_indices;
|
||||
|
||||
for (std::size_t i = 0; i < to_calc.size(); i++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user