| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
I did very simple and trivial benchmark on walking through the kernel tree:
|
Sorry, something went wrong.
|
If this gets merged, I will open another PR for the remaining occurrences of listdir() in other functions. |
Sorry, something went wrong.
As recommended in https://peps.python.org/pep-0471/ Signed-off-by: Miroslav Suchý <msuchy@redhat.com>
|
Any review comments? |
Sorry, something went wrong.
|
@AyanSinhaMahapatra or @pombredanne can I kindly ask you for a review? |
Sorry, something went wrong.
There was a problem hiding this comment.
@xsuchy Thanks++ for the PR.
Thanks for the references, we should definitely move towards using scandir() allright in this context. I've tested out this branch with scancode-toolkit latest too, and everything looks good, and we do get some performance improvements there on the codebase collection step similarly as indicated by you, thanks for doing and including those too.
This looks ready otherwise, and apologies for the late review.
We might want to do the same in other places too which would have some effect on the performance, https://github.com/search?q=org%3Aaboutcode-org+os.listdir&type=code maybe this could be useful in extractcode/fetchcode/deltacode too
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
As recommended in https://peps.python.org/pep-0471/