avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregory Steuck <greg-avalon-...@nest.cx>
Subject RE: ContainerManager and Sub-containers
Date Wed, 05 Jun 2002 01:29:12 GMT
>>>>> "Leo" == Leo Simons <leosimons@apache.org> writes:

    >> Here is something that I have been thinking about lately.  How
    >> can we have our cake and eat it too?  How can we have a fast
    >> performing component hash without the limitations of the
    >> String.

    Leo> 1 - don't use String (use int, long, char[]) 2 - cache
    Leo> Strings (define Strings as early as possible, minimise
    Leo> operations on String, cache operations on String)

    Leo> the advantage of 1 is a cleaner (smaller) implementation.

Disadvantage is being bound to a particular primitive type that you
can't possibly extend or change. Request implementation on the other
hand changes the underlying mechanisms without affecting the user.
Even String is bad enough for it is final.

To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>

View raw message