You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2022/10/19 21:19:00 UTC

[jira] [Commented] (SANTUARIO-595) Performance issue in 3.0.1 (and 2.3.2) while signing XML with many references

    [ https://issues.apache.org/jira/browse/SANTUARIO-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17620604#comment-17620604 ] 

Colm O hEigeartaigh commented on SANTUARIO-595:
-----------------------------------------------

Have you done any profiling about where the extra time is being spent in the code? I wonder if it's an issue in Santuario itself or in the JDK.

> Performance issue in 3.0.1 (and 2.3.2) while signing XML with many references
> -----------------------------------------------------------------------------
>
>                 Key: SANTUARIO-595
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-595
>             Project: Santuario
>          Issue Type: Improvement
>          Components: Java
>    Affects Versions: Java 3.0.1, Java 2.3.2
>         Environment: java11
>            Reporter: Adomas Birstunas
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>         Attachments: XmlsecPerformanceTest.java
>
>
> XML signing and verification takes unacceptable long time if signature uses many references to the simple XML file.
> Using earlier xmlsec versions issue was fixed by including xalan library to the classpath.
> From xmlsec version 3.0.1 (and 2.3.2) this fix does not work any more.
> Therefore,
> with xmlsec version 3.0.0 and xalan (version 2.7.2) in the classpath signing and verification takes less 1s,
> and, for the same signature, with xmlsec version 3.0.1 and xalan (version 2.7.2) in the classpath, signing and verification takes more than 10s.
> It is unacceptable time for the rather simple signature.
> Test which illustrates this performance issue is attached.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)