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:
Nitin Kumar Maharana 2015-11-17 23:02:55 +05:30
parent f6db0a2a49
commit 48df255f71
1 changed files with 0 additions and 3 deletions

View File

@ -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');