Skip to content
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

Can we make graphlib2 an optional dependency? #117

Open
jriddy opened this issue Nov 4, 2023 · 3 comments
Open

Can we make graphlib2 an optional dependency? #117

jriddy opened this issue Nov 4, 2023 · 3 comments

Comments

@jriddy
Copy link

jriddy commented Nov 4, 2023

Since graphlib2 is a drop-in replacement for the stldib, can we make it an optional extra? I'm looking to package this for Fedora and avoiding another transitive dep might make it easier.

I'd be happy to submit a PR to do this if you're interested.

@adriangb
Copy link
Owner

adriangb commented Nov 4, 2023

There’d be a pretty large performance hit. And while graphlib2 is a drop in replacement for the standard library the other way around is not necessarily true. Would you use the python backport for < 3.9 or only make it optional for >3.9?

I’d be happy to look at a PR and go from there

@jriddy
Copy link
Author

jriddy commented Nov 4, 2023 via email

@adriangb
Copy link
Owner

adriangb commented Nov 4, 2023

They’ll be two sources or performance regressions: rust vs python and copying a prepared graph. The standard library doesn’t let you do the latter, you have to re prepare it. The graphlib2 repo has benchmarks.

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

2 participants