Skip to content

Slow imports of XMLSchema? #983

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

Open
beng-sjc opened this issue Apr 2, 2025 · 0 comments
Open

Slow imports of XMLSchema? #983

beng-sjc opened this issue Apr 2, 2025 · 0 comments

Comments

@beng-sjc
Copy link

beng-sjc commented Apr 2, 2025

Hello,

We currently use djangosaml2 as part of our workflow and have an external monitoring service, Sentry, to profile our application.

We've noticed that on every request to our app, the djangosaml2 library imports saml2 library which imports xmlschema and usually takes a long time. We are also following the recommended usage in urlpatterns.

I've attached a screenshot showing the profiling from Sentry and in the first frame the include takes 1.45s to do this step: re_path(r"^saml2/", include("djangosaml2.urls")) and another screenshot showing slow imports of XMLSchema by saml2. Unfortunately I had issues trying to upload a video of our profiling that might have made this easier to visualize.

Could the imports be optimized somehow? We can provide more details about our usage if needed.

Image Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant