santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Benito <raul.benito.gar...@gmail.com>
Subject Re: circumventBug2650 - Memory footprint
Date Thu, 22 Sep 2005 06:49:54 GMT
Don't use any xpath transformation. Select what you want to sign with:

 <Reference URI="#whatToSign">..</Reference>
<NodeToBeSigned id="whatToSign">..</NodeToBeSigned>

In this way , the circumventBug2650 is not called(and other several
optimizations hit). And you can sign bigger documents.

Using xpath transformation is always one order the magnitude slower.

You can see some speed considerations form page 12, in this presentation:
http://r-bg.com/images/SecuringXMLDocuments.pdf

Regards,

Raul

On 9/21/05, John Lanier <xmlsecure@yahoo.com> wrote:
> Hi,
>
> The circumventBug2650 function in XMLUtils takes up a
> significant amount of memory in adding Attributes to
> each node. Is there any effort underway to rewrite
> this in a more memory-friendly way?
>
> I am unable to sign XML documents larger than about
> 10MB using the current (1.2.x) code base. (Pentium
> III, 500MB Java heap size).
>
> Any pointers from anybody who worked around this bug
> or managed to sign larger XML docs?
>
> Thanks
> ~john
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>


--
http://r-bg.com

Mime
View raw message