[perf] improvements on DefaultFaceletsStateManagementStrategy
-------------------------------------------------------------
Key: MYFACES-3494
URL: https://issues.apache.org/jira/browse/MYFACES-3494
Project: MyFaces Core
Issue Type: Improvement
Components: JSR-314
Reporter: Leonardo Uribe
Assignee: Leonardo Uribe
There are two possible optimizations for DefaultFaceletsStateManagementStrategy
- When saving the view, do not call getClientId() unless necessary.
- Check when there are no state to be restored and if that so, skip tree
traversal.
- Check when only the viewRoot needs to be restored and if that so, restore
root and skip tree traversal.
These changes will improve speed and memory a little bit, since myfaces pss
algorithm is highly optimized and has usually zero or almost zero delta.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira