Improve performance of event cache when scrolling up
authorPatrick Tasse <patrick.tasse@gmail.com>
Thu, 10 Jan 2013 19:47:09 +0000 (14:47 -0500)
committerPatrick Tasse <patrick.tasse@gmail.com>
Fri, 11 Jan 2013 17:01:20 +0000 (12:01 -0500)
commit85438014ee83132b459feb3da492e145a851bf8b
tree222aaeabd718219c02ddbb90cfa73f6770f4fd09
parentd45143656a6cf34c1ff8816aeafc1e04e508de51
Improve performance of event cache when scrolling up

When an event index is requested that is outside of the cache, the cache
population request always starts at the requested index and the cache
contains the following 'cache size' events. Therefore when scrolling up
outside of the cache boundaries, a new cache population request is
triggered at every scroll event.

This patch changes the behavior of the cache to increase the cache to
two blocks of 'cache size', and ajust the cache population request so
that the cache is centered on the requested index.

Change-Id: I890324a2f6d8afec5956ae73d66683eefc98d828
Reviewed-on: https://git.eclipse.org/r/9601
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsCache.java
This page took 0.024791 seconds and 5 git commands to generate.