xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Mazza <grm7...@yahoo.com>
Subject Re: String.intern() test and measurement
Date Tue, 02 Dec 2003 20:13:31 GMT
--- "J.Pietschmann" <j3322ptm@yahoo.de> wrote:
> > But, as Glenn noticed, the attribute names can
> also be implemented with 
> > enumeration 
> 
> There are no enumerations in pre 1.5 Java. What was
> meant was that
> strings denoting XSLFO property enumeration tokens
> can be interned
> as the set is of limited and more or less fixed
> size, 

No I was actually thinking static final variables, my
reference to "enumerations" was in a generic sense:

public static final int PROPA = 1;
public static final int PROPB = 2;
public static final int PROPC = 3;

If it is only the property names we were planning on
interning, then I thought static final variables would
be faster/more efficient instead.  

Glen


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

Mime
View raw message