Kanagaraj M has posted comments on this change.

Change subject: webadmin : Optimise for virt store on volumes
......................................................................


Patch Set 11:

(2 comments)

http://gerrit.ovirt.org/#/c/31041/11/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/volumes/VolumeListModel.java
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/volumes/VolumeListModel.java:

Line 843: 
Line 844:     private void optimizeVolumesForVirtStore(final 
List<GlusterVolumeEntity> volumeList) {
Line 845:         if(getConfirmWindow() != null) {
Line 846:             setConfirmWindow(null);
Line 847:         }
> Oops you meant confirmWindow check? I am adding a warning popup just in cas
ok
Line 848:         AsyncQuery aQuery = new AsyncQuery();
Line 849:         aQuery.setModel(this);
Line 850:         aQuery.asyncCallback = new INewAsyncCallback() {
Line 851:             @Override


Line 914:         List<GlusterVolumeOptionEntity> filteredOptions = 
volumeOptionsEnabled;
Line 915:         List<GlusterVolumeOptionEntity> tempFilteredOptions = 
volumeOptionsEnabled;
Line 916:         for(PredicateFilter<GlusterVolumeOptionEntity> predicate  : 
predicates) {
Line 917:              tempFilteredOptions = 
ListUtils.filter(volumeOptionsEnabled, predicate);
Line 918:              filteredOptions.retainAll(tempFilteredOptions);
> No my objective was to find intersection of the sets of entities(options he
There is no change in the logic.

For example, In a list of 10 elements, if only 4 elements are passing the first 
predicate, the for the next predicate why do you need to process all the 10 
elements instead of 4.
Line 919:         }
Line 920:         if(filteredOptions.size() > 0) {
Line 921:             return true;
Line 922:         }


-- 
To view, visit http://gerrit.ovirt.org/31041
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I6f995dec2258a3f5fc9673d5d075866b89f7773c
Gerrit-PatchSet: 11
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: anmolbabu <anb...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayi...@redhat.com>
Gerrit-Reviewer: Sahina Bose <sab...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: anmolbabu <anb...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to