Santiago Gala wrote:
>
> While working on a patch to simplify current Jetspeed code, two ideas
> came up on me:
>
> 1- DynamicURI is a strong candidate for pooling instances, since it
> should be heavily used under most setups (typically, we have more than
> five per request, and they are instantiated afresh in every request). I
> imagine you have already considered this object.
>
It is at least as good a candidate as the ParameterParser. I think
DynamicURI should be made an interface. DynamicURI/ParameterParser
paired implementations could then be used to alter the
uri format that we currently use. Not that I feel our implementation
needs improvement per se, but I have seen others such as what's in Tea
that might be of interest.
> 2- It could give an efficience boost if we could change the way it is
> used. Instead of returning it as a String, we could have something like
> dynuri.write( data.getWriter() ); , writing it straight into the
> response. This would save some StringBuffer and String instantiations
> ---> less garbage ---> better memory efficience again.
>
> I don't know if this second idea is feasible to implement with
> templating engines like velocity, jsp taglibs or the pull approach. So I
> wanted, before doing further experiments, to know what do you experts
> think about it. :-?
>
> Looks promising?
It might be worth exploring, but I can not say immediately that it will
lead to something workable in a general sense. There are potentially a
lot of other Object.toString() operations occuring during a velocity/jsp
template parsing, so it would find most of its benefit in applications
with not so much dynamic content, which are likely to not need the
efficiency. Of course you could carry this on to other Objects as
well. So again it is worth a look.
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]