[LNT] r325075 - Use cache for sample sorting as well
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 13 15:36:54 PST 2018
Author: cmatthews
Date: Tue Feb 13 15:36:53 2018
New Revision: 325075
URL: http://llvm.org/viewvc/llvm-project?rev=325075&view=rev
Log:
Use cache for sample sorting as well
Modified:
lnt/trunk/lnt/server/ui/views.py
Modified: lnt/trunk/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/views.py?rev=325075&r1=325074&r2=325075&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/views.py (original)
+++ lnt/trunk/lnt/server/ui/views.py Tue Feb 13 15:36:53 2018
@@ -917,6 +917,7 @@ def v4_graph():
graph_datum = []
overview_plots = []
baseline_plots = []
+ revision_cache = {}
num_plots = len(graph_parameters)
for i, (machine, test, field, field_index) in enumerate(graph_parameters):
# Determine the base plot color.
@@ -948,7 +949,7 @@ def v4_graph():
data = multidict.multidict((rev, (val, date, run_id))
for val, rev, date, run_id in q).items()
- data.sort(key=lambda sample: convert_revision(sample[0]))
+ data.sort(key=lambda sample: convert_revision(sample[0], cache=revision_cache))
graph_datum.append((test.name, data, col, field, url))
More information about the llvm-commits
mailing list