tmf : queryHistoryRange performance fix
authorFlorian Wininger <florian.wininger@polymtl.ca>
Fri, 11 Apr 2014 18:59:43 +0000 (14:59 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 11 Apr 2014 19:21:52 +0000 (15:21 -0400)
commita0f8fb9bcf253dec087601c9f75e2995937f8b98
treed98941c82716a8de63b5dd98cb4f09406e3b14ac
parent40b365cfab647fc186dcf04ce9f98c8a74718915
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>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/StateSystem.java
This page took 0.024329 seconds and 5 git commands to generate.