Re: svn commit: r201864 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo: ./ flow/ pagination/ pagination/bookmarks/

2005-07-08 Thread Jeremias Maerki
Sorry, but I have to take a step back here and withdraw from this discussion. This nit is taking too much of my attention. It works, so I'll leave it be, although I'm not fully comfortable with the presence of the intern() calls. It works just fine locally without them and I can't imagine a big

Re: svn commit: r201864 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo: ./ flow/ pagination/ pagination/bookmarks/

2005-06-28 Thread Jeremias Maerki
Thanks to Finn and Andreas for looking at this. Given what I see here I'd say the two intern() calls in FOTreeBuilder would better be removed. The Set the namespaces are stored in works with equals() anyway, so I don't see the point of interning the Strings. Or do I miss anything here? On

RE: svn commit: r201864 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo: ./ flow/ pagination/ pagination/bookmarks/

2005-06-27 Thread Andreas L. Delmelle
-Original Message- From: Finn Bock [mailto:[EMAIL PROTECTED] snip / But since == *is* faster then .equals and I think we can assume that most URIs are in fact from the FO namespace we can get the benefit from both. Measured with jdk1.4.2_02 on winXP: Equal string == 141

RE: svn commit: r201864 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo: ./ flow/ pagination/ pagination/bookmarks/

2005-06-27 Thread Andreas L. Delmelle
-Original Message- From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] -Original Message- From: Finn Bock [mailto:[EMAIL PROTECTED] snip / But since == *is* faster then .equals and I think we can assume that most URIs are in fact from the FO namespace we can get the

Re: svn commit: r201864 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo: ./ flow/ pagination/ pagination/bookmarks/

2005-06-26 Thread Jeremias Maerki
I don't think the discussion was finished when you did this, Glen. Anyway, I've looked up our use of String.intern() in our sources and the only use is with namespace URIs (see FOTreeBuilder). I believe the intern() call there doesn't help a lot here concerning memory consumption. If the XML

RE: svn commit: r201864 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo: ./ flow/ pagination/ pagination/bookmarks/

2005-06-26 Thread Andreas L. Delmelle
-Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Hi, ... So I believe Nils proposed change doesn't have any negative effects, especially since we don't seem to have pursued a more widespread use of String.intern() back when it was discussed in December 2003

RE: svn commit: r201864 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo: ./ flow/ pagination/ pagination/bookmarks/

2005-06-26 Thread Andreas L. Delmelle
-Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] snip / Oh no, it wasn't--but we know the status quo *wasn't* acceptable, and that the performance argument was no longer valid because of the research you did on .equals(). Now you and Andreas can finish out the