We're waiting to see how this works with Xalan-J before we do the same
thing in Xalan-C++, although I'm thinking this may be a very useful
enhancement.

It's not as pressing a problem with Xalan-C++ because there are all sorts
of tricks in C++ to minimize memory usage and the costs associated with
dynamic memory allocation that are not available in Java.  We pretty much
make use of every trick in the book in Xalan-C++, so we can parse and
transform very large documents.

In Xalan-C++, the number of nodes in an XML document is restricted to the
maximum value of an unsigned long.  On a 32-bit platform, that means
4,294,967,296 nodes.  On a 64-bit platform, that would be
18,446,744,073,709,551,616 nodes, assuming an unsigned long is a 64-bit
value.  I think you'd run out of memory address space well before you hit
either limit.

Dave



                                                                                       
      
                    Holger Fl�rke                                                      
      
                    <floerke@doct        To:     [EMAIL PROTECTED]              
      
                    ronic.de>            cc:     (bcc: David N Bertoni/CAM/Lotus)      
      
                                         Subject:     Re: XALAN and big files          
      
                    07/11/2001                                                         
      
                    01:45 AM                                                           
      
                    Please                                                             
      
                    respond to                                                         
      
                    xalan-dev                                                          
      
                                                                                       
      
                                                                                       
      




>Carsten, please see http://xml.apache.org/xalan-j/dtm.html#settings.  You
>want to set "http://xml.apache.org/xalan/features/incremental";  to true.
>
>Be aware that Xalan has a limit of 1,048,575 nodes per document right now.
>Since you have big documents, I'm curious if your getting close to that.
Hey, I never heard of this feature. Any chance this feature will be
implmented in xalan-c? Are there any restrictions to the number of nodes in

xalan-c?

HolgeR

--
holger floerke                      d  o  c  t  r  o  n  i  c
email [EMAIL PROTECTED]          information publishing + retrieval
phone +49 (0) 2222 9292 90          http://www.doctronic.de
fax   +49 (0) 2222 9292 99





Reply via email to