mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9068: Listing Port Forwarding Rules take too much time to load
For setting the width of each data item for each row of Port Forwarding rules, it was processing all rules. Basically for each data item, it was searching in all rules, which is un-necessary. If there are N-Rules, It was processing N-times. Now, it only processes one time by taking all N-rules at a time. The previous solution was of O(NxN). Now its changed to O(N).
This commit is contained in:
parent
f6db0a2a49
commit
48df255f71
|
|
@ -278,9 +278,6 @@
|
|||
$td.addClass('blank');
|
||||
}
|
||||
|
||||
// Align width to main header
|
||||
_medit.refreshItemWidths($multi);
|
||||
|
||||
if (data._hideFields &&
|
||||
$.inArray(fieldName, data._hideFields) > -1) {
|
||||
$td.addClass('disabled');
|
||||
|
|
|
|||
Loading…
Reference in New Issue