TT#35952 Remove sorting from lists under progress bars

Calling sorting after every single project processing causes
huge overload during initial page load because the same DOM
part is removed, sorted and then added back by many callbacks
at the same moment. So let's disable it.
This function sorts the list of projects under each progress bar.
It's not critical to have the list sorted there so let's remove
sorting and see how it works for us.

Change-Id: Iabf4adb3ade3b7835b35818b58855720363c2bf5
changes/68/27268/1
Sergii Kipot 6 years ago
parent 7c79db569d
commit 46eae42b82

@ -35,14 +35,6 @@ function get_class_status(base, status) {
return base + get_label_status(status);
}
function sort_project_stat_lists() {
$('.list-stat').each(function() {
$(this).children().detach().sort(function(a, b) {
return $(a).text().localeCompare($(b).text());
}).appendTo(this);
});
}
function set_project_stats(project, label)
{
var labels = new Set(Object.keys($.release.stats));
@ -57,7 +49,6 @@ function set_project_stats(project, label)
if($.release.stats[label]) {
$.release.stats[label].add(project);
}
sort_project_stat_lists();
}
function update_stats_progress() {

Loading…
Cancel
Save