datastore: Keep a snapshot of the latest branch
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Tue, 21 Feb 2017 19:35:45 +0000 (14:35 -0500)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Thu, 2 Mar 2017 20:03:25 +0000 (15:03 -0500)
commit2abec5dd6b714f1b693a632b534f9faf95ebe237
tree35c4804135ad63fcb208b20ebbb6493978bc2ff3
parentc2e3f4dda82cef19b112aeb617fd5ea349a11d0b
datastore: Keep a snapshot of the latest branch

This avoids making immutable copies of the same branch over and over.

Also use the latest branch directly in the node insertion instead of
the getter.

This change alone removes all performance impact of the datastore
when building.

Change-Id: If85ae9bded364cfd6f1243416d025df6307cf909
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91755
Reviewed-by: Hudson CI
Reviewed-by: Loic Prieur-Drevon <loic.prieur.drevon@ericsson.com>
statesystem/org.eclipse.tracecompass.datastore.core/src/org/eclipse/tracecompass/internal/provisional/datastore/core/historytree/AbstractHistoryTree.java
This page took 0.025113 seconds and 5 git commands to generate.