Hi,

in situation, where no build-time  tags (c:if, co:foreach, ...) and no
ui:include src="#{}" are used (and no direct component.getChildren()
manipulation of course), builds VDL.buildView every time the same
component structure (same graph). 

In this case compute myfaces some informations again and again but every
time with same results. For example, creating of unique ids is very
expensive:

FaceletContext.generateUniqueId
FaceletCompositionContext.generateUniqueComponentId
UniqueIdVendor.createUniqueId

in ComponentTagHandlerDelegate.apply(FaceletContext, UIComponent)

Can we cache this ids at ComponentTagHandlerDelegate in production in
case of view without build time modifications ? This is similar to [1].

Same situation with @ResourceDependency annotations: ApplicationImpl.
_handleAttachedResourceDependencyAnnotations computes the same result
with every request/response.

Others ideas what can be cached?

Regards,

Kočičák


[1] https://issues.apache.org/jira/browse/MYFACES-3160








Reply via email to