[
https://issues.apache.org/jira/browse/TOMAHAWK-855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466177
]
Catalin Kormos commented on TOMAHAWK-855:
-----------------------------------------
Hi Vitaly,
Good catch! i just tested your proposition out, and indeed it works much more
faster, especialy for large data lists. For now i'd say let's bring in this
performance improvement first, and we can deal with the customization of the
comparator that is used for sorting, in another Jira issue that i would
appreciate if you would create.
Regards,
Catalin
> dataTable sortable too slow
> ---------------------------
>
> Key: TOMAHAWK-855
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-855
> Project: MyFaces Tomahawk
> Issue Type: Improvement
> Components: Extended Datatable
> Affects Versions: 1.1.3, 1.1.4-SNAPSHOT, 1.1.5-SNAPSHOT
> Reporter: Vitaly Smyk
>
> when i use sortable column and many records any sort has too many time and
> CPU to 100%
> after code review i found where is problem:
> in class SortableModel subclass private final class Comp
> medhod compare too slow becouse it invoke:
> getPropertyValue(_prop);
> i has change it to:
> PropertyUtils.getProperty(_model.getRowData(),_prop);
> and perfomanse increase !!!10 times!!!
> my impovements request:
> or change code or add functionality to setup Comparator themself (better
> choise)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira