GitHub user nitin-maharana opened a pull request:

    https://github.com/apache/cloudstack/pull/1081

    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).

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nitin-maharana/cloudstack CloudStack-Nitin15

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1081.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1081
    
----
commit 48df255f71e9938cc9e0879cbc60d9a0a778d95a
Author: Nitin Kumar Maharana <nitin.mahar...@gmail.com>
Date:   2015-11-17T17:32:55Z

    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).

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to