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

paths method performance #487

Open
jbedard opened this issue Feb 8, 2024 · 0 comments
Open

paths method performance #487

jbedard opened this issue Feb 8, 2024 · 0 comments

Comments

@jbedard
Copy link

jbedard commented Feb 8, 2024

A lot of the paths methods are significantly slower then they could be.

I've found when invoked frequently (such as once per path in a large glob result) doing simple string manipulation is sometimes 10-100x faster (300+s to <10s in some instances). Primarily methods such as paths.replace_extension and paths.split_extension, and the underlying paths.basename. I think the primary reason being the creation of arrays/tuples only to extract a single string out of the array?

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