Bob Foster wrote:
The only thing you could do is figure out a more compact way to store the strings (e.g., in a char array or even a compressed char array) and return something other than String from your intern method, like an integer. IIRC Saxon does something like this internally. So there's even an open source implementation.

Older versions of Xerces used a similar approach but it was too difficult to use and, more importantly, maintain. The decision to use String objects all the way through the system makes it a lot easier to develop and extend. Having actively developed in both situations, I prefer the way that it is now.

The SymbolTable is there as a performance enhancement. And for
most people it works great. Only very rare document instances
would exhibit problems. But even for those, Michael has shown
a workaround, at the expense of speed.

--
Andy Clark * [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to