On Tue, Feb 27, 2001 at 12:39:51PM +0200, [EMAIL PROTECTED] wrote:
> Yes, +1 for interfaces/pluggable implementations as it would help to use
> Turbine for different mobile protocols, like SMS, WAP, IMODE, JSKY, etc.,
> some of which need customized parsing as they do not support all features of
> HTTP. This area covers also many template related topics, but we're still
> working on them...
Definitely a good reason to do it.
> Pooling wouldn't provide so much benefits as it seemed at the first glance.
> DynamicURI has two Vectors and ParameterParser one Hashtable that are
> allocated dynamically. The other memory consumers are mainly local variables
> within methods, which can't be pooled. If both classes were explicitly
> restricted to be used within a single thread only (as at least
> ParameterParser implicitly is when used through the RunData), some of the
> local variables could be changed to class variables, which would decrease
> memory consumption together with pooling.
I don't get this; ParameterParser - the class - can be used by many
threads at once...
> At the same time, Vectors could be
> changed to ArrayLists and Hashtables to HashMaps, which would reduce
> synchronization.
DynamicURI in the guise of TemplateLink objects is now pooled along with
other request-scope tools provided bye the PullService (thanks for the
handy PoolService which made this bit rather easy).
I'll look at switching to ArrayLists and HashMaps.as well.
> FormMessages is another memory consumer in TurbineRunData. It allocates four
> Hashtables during its intantiation and it's intantiated for every request.
> Maybe it should be intantiated only when really used, Hashtables changed to
> HashMaps and pooled together with TurbineRunData?
Perhaps FormMessages could become another PullService tool, that way it
need only be loaded and instantiated if the developer wants to use it
(otherwise they can remove it from TR.props).
This would mean it would not be available other than to Velocity users
though (the PullService is Velocity only right now)...
--
Sean Legassick
[EMAIL PROTECTED]
As a person, nothing human can be alien to me
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]