-
-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extreme slowdown after upgrading to version 2.4.0 #224
Comments
The Java dependency is a showstopper for us for deployment reasons. In any case, I doubt the performance of validation can improve much considering you're spawning an external process to process each SAML login. Maybe something like https://www.npmjs.com/package/cxsd (or anything that generates plain JS from XSD) could be worth investigating? |
@jonathanperret the Java dependency was a problem for me too, although it was just javac (compiler) that isn't available on my server. If you can run |
@D-32 It's true that the first block we encountered was the lack of |
I am thinking to make the validation process to be pluggable. Previously, we are using |
Thanks @jonathanperret for providing more context. It definitely sounds like "spawning an external process to process each SAML login" is what's causing the performance degradation. Making the validation process pluggable sounds like it could help solve the performance issue if it enables users to use Overall I'm not sure if having such bad performance is a good default for the library as I can imagine this being a blocker for many projects. Unfortunately I don't know about the specific issues the previous solution caused and I assume there were good reasons to move to the Java based approach. |
@tngan Yes, I saw #216 before commenting here. I understand you had trouble with In my opinion, For the moment we have forked I hope this validation issue can be fixed because apart from that |
The current version of samlify (2.4.x) has a dependency on a Java environment for XML validation. This creates bad performance issues (tngan/samlify#224) and makes CI and deployment complicated. For now, we are using our own fork of samlify that skips XML validation altogether.
Some update, the module for pluggable validator is in progress. :) |
With v2.5.0-rc1, now you can choose either |
I will close it first since there is an option to get rid of this issue from external schema validator. |
Hi,
I'm currently in the process of upgrading from version 2.3.7 to 2.4.0, but my SSO related tests now run in 16 seconds vs less than a second before. I saw that there were some large changes in the latest release and Java was added as a dependency, but is such an extreme slowdown expected or is there something I can do to fix it?
The text was updated successfully, but these errors were encountered: