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