You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2006/04/24 18:26:27 UTC
[Myfaces Wiki] Update of "Performance" by MartinMarinschek
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.
The following page has been changed by MartinMarinschek:
http://wiki.apache.org/myfaces/Performance
New page:
There are a few settings you can enable in your web.xml file to make MyFaces perform well.
First step - don't use client-side state saving except for development.
javax.faces.STATE_SAVING_METHOD=SERVER
Next step - disable compression of state in server:
org.apache.myfaces.COMPRESS_STATE_IN_SESSION=false
Very important, too, is to disable the serialization of state, serialization and deserialization of the component tree is a major performance hit. There is work being done to ensure that the serialization provider is pluggable, and that optionally JBoss serialization may be used.
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION=false
Another performance factor is the ExtensionsFilter. The ExtensionsFilter buffers and parses the response on every request. You can disable this, and still gain all functionality the ExtensionsFilter is providing, by doing two things:
1.) set the context-param org.apache.myfaces.ADD_RESOURCE_CLASS=org.apache.myfaces.component.html.util.StreamingAddResource
2.) get rid of the <HEAD> tag in your HTML, and instead use Tomahawk's <t:documentHead/> tag.
That should be it - with these settings, you should be running much better performance wise.