tmf: Speed up TmfTraceUtils#getPreviousEventMatching
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Tue, 28 Jun 2016 20:16:43 +0000 (16:16 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 30 Jun 2016 23:52:01 +0000 (19:52 -0400)
commitc93f91d94629ecd8e8bf2e398d22439de59ea428
treea6c9d8fe967ed670cf253eff131879d55f356140
parent4a6f397f22de6f5c51e22a6fe9ce48fdac423205
tmf: Speed up TmfTraceUtils#getPreviousEventMatching

This patch makes the reverse search look back by the cache
size of the trace, then iterating on the chunk in reverse
order to find a match. This allows returning as soon as
we find a matching event.

Change-Id: Iaed2c2326d5a4939688df7ba6d13696811d1c165
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/76164
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/trace/TmfTraceUtils.java
This page took 0.027046 seconds and 5 git commands to generate.