tmf : queryHistoryRange performance fix
This patch removes unnecessary loops for small resolutions,
which increases the performance.
Benchmark :
Before :
Query resolution
1022444670: 0.245
Query resolution
102244467: 1.167
Query resolution
10224446: 3.390s
Query resolution
1022444: 4.028s
Query resolution 102244: 4.285s
Query resolution 10224: 5.451s
Query resolution 1022: 10.970s
Query resolution 102: 37.396s
Query resolution 10: 306.308s
After :
Query resolution
1022444670: 0.278s
Query resolution
102244467: 1.138s
Query resolution
10224446: 3.373s
Query resolution
1022444: 3.976s
Query resolution 102244: 4.329s
Query resolution 10224: 5.309s
Query resolution 1022: 8.001s
Query resolution 102: 8.145s
Query resolution 10: 8.231s
Reference :
Performance with queryHistoryRange without resolution : 8.414s
Change-Id: I6022dc6c562d994310f9419c362dd1f06a414036
Signed-off-by: Florian Wininger <florian.wininger@polymtl.ca>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/21155
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>