Repository navigation
CLOUDSTACK-9068: Listing Port Forwarding Rules take too much time to load - #1081
Conversation
…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).
|
Thanks for the fix @nitin-maharana. Tried it and it works great! LGTM Pinging @DaanHoogland @bhaisaab to review. |
|
less is more, if it works it's fine. How does it behave on resizing? |
|
@DaanHoogland resizing the screen? I didn't test that. |
|
LGTM, haven't tested with resized UI though |
|
@DaanHoogland Is that what you mean.. testing it with the wider UI or..? |
|
I was wondering; as it seems obvious from your screenshot that initial rendering works, after an item (i.e. row) has been added, whether it also re-renders ok after adjusting tables columns or resizing the window/frame. The patch is a simple removal of a render helper. I didn't take time to test yet. BTW this does not mean -1! |
|
@DaanHoogland This is already much better, when you have 30 port forwarding rules the UI is unusable without this fix. When we want to make more improvements, let's make a new PR. I'd rather test another PR instead of this one again and try resizing ;-) Agree? |
|
sure, it was not meant as a -1 |
CLOUDSTACK-9068: Listing Port Forwarding Rules take too much time to loadFor 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). * pr/1081: CLOUDSTACK-9068: Listing Port Forwarding Rules take too much time to load Signed-off-by: Remi Bergsma <github@remi.nl>

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