myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Korherr <jakob.korh...@gmail.com>
Subject Re: [core] performance: disabling "old" technologies
Date Sun, 26 Sep 2010 10:35:32 GMT
+1 on that. Great idea!

Furthermore changing to StAX is also a great idea.

Regards,
Jakob

2010/9/25 Ganesh <ganesh@j4fry.org>:
> Great approach. Though the spec would be the right place for this I think we
> should have it in MyFaces asap and do our best to push it to the 2.2 spec.
>
> Am 24.09.2010 14:33, schrieb Martin Koci:
>>
>> Hi,
>>
>> since JSF 2.0 JSP support and<managed-bean>  are deprecated. Since 1.2
>> same for javax.faces.el.
>>
>>
>> For performace reasons I suggest find a way how disable following:
>>
>> 1) Managed Bean support (o.a.m.SUPPORT_MANAGED_BEANS=false)
>>
>> if this flag is false, myfaces will not install ManagedBeanResolver and
>> will skip managed beans processing during startup (or outputs a warning
>> if managed bean is found and this flag is false).
>>
>>
>> 2) VariableResolver and PropertyResolver
>> (o.a.m.SUPPORT_JAVAX_FACES_EL=false)
>>
>> myfaces will not install VariableResolverImpl and
>> VariableResolverToELResolver and PropertyResolver implementations
>>
>>
>> 3) (o.a.m.SUPPORT_JSP=false)
>> if this flag is false myfaces will not install FacesCompositeELResolver
>> and will skip JSP initializer during startup. FacesCompositeELResolver
>> is related to VariableResolverImpl, maybe this can be one paramater.
>>
>> Those are only suggestions. I did some initial profiling and when "old"
>> technogies are disabled myfaces gain significant performance boost,
>> especially in render response phase.
>>
>> Another solution for ELResolvers only is use of comparator but this does
>> not allow skip certain parts of code.
>>
>> WDYT?
>>
>> Kočičák
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
> --
> "There are two kinds of people in the world, those who believe there are two
> kinds of people and those who don't."
> — Robert Benchley
>



-- 
Jakob Korherr

blog: http://www.jakobk.com
twitter: http://twitter.com/jakobkorherr
work: http://www.irian.at

Mime
View raw message