Skip to content

Model optimisation: avoid computing before first presence time

Nicolas Mounet requested to merge feature/no_computing_before_first_time into master

A quick optimization following an idea by @pelson : avoid computing anything before the first presence time. Pre-requisite for future modifications of the model which might degrade performance.

This is transparent result-wise.

Before:

[I 210910 14:15:06 web:2239] 200 GET /calculator/baseline-model/result (::1) 7778.55ms
[I 210910 14:15:33 web:2239] 200 GET /calculator/baseline-model/result (::1) 5245.78ms

After:

[I 210910 14:21:05 web:2239] 200 GET /calculator/baseline-model/result (::1) 6209.91ms
[I 210910 14:21:23 web:2239] 200 GET /calculator/baseline-model/result (::1) 4416.61ms
Edited by Nicolas Mounet

Merge request reports