{"id":20888019,"url":"https://github.com/canop/walk_pace","last_synced_at":"2026-04-26T09:32:18.195Z","repository":{"id":66218068,"uuid":"165281343","full_name":"Canop/walk_pace","owner":"Canop","description":"A simple evaluation of the cost of using rust's standard WalkDir","archived":false,"fork":false,"pushed_at":"2019-01-13T12:13:44.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T20:57:48.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Canop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-01-11T17:17:56.000Z","updated_at":"2024-07-03T11:24:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9043d15-2ee1-452e-a406-fcfda94e9697","html_url":"https://github.com/Canop/walk_pace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Canop/walk_pace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fwalk_pace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fwalk_pace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fwalk_pace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fwalk_pace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Canop","download_url":"https://codeload.github.com/Canop/walk_pace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Canop%2Fwalk_pace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32292834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T08:29:33.829Z","status":"ssl_error","status_checked_at":"2026-04-26T08:29:18.366Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T08:23:49.503Z","updated_at":"2026-04-26T09:32:18.190Z","avatar_url":"https://github.com/Canop.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\nThe de facto standard [walkdir](https://github.com/BurntSushi/walkdir) crate offers a very configurable way to walk over the files of a directory.\n\nBut this power comes with a cost.\n\nAfter having improved the performances of computing directory size in [broot](https://github.com/Canop/broot) by 15% by removing walkdir, I wanted to have a clearer idea of the cost, which is why I wrote this simple bench comparing walkdir with a naive and obvious implementation for some very simple operations.\n\nHere's the output on my computer:\n\n\tdys@dys-desktop:~/dev/walk_pace\u003e target/release/walk_pace\n\twarming up\n\tcount_files_walking. Number of files: 1685126\n\tcount_files_running. Number of files: 1685113\n\tcount_visible_files_walking. Number of files: 1225536\n\tcount_visible_files_running. Number of files: 1225523\n\tmeasuring\n\tcounting files, walking, took 2.027986542s\n\tcounting files, running, took 1.77173462s\n\tcounting visible files, walking, took 1.481694735s\n\tcounting visible files, running, took 1.27163876s\n\n(the files listed by walkdir and not by my iteration are in `/proc`)\n\nIn all my tests I get about the same result of 15% overhead of WalkDir over a simple iteration, be it DFS, BFS, or mixed.\n\nAnd here are my personal conclusions:\n\n* WalkDir does allow for a much shorter and clearer code\n* WalkDir isn't *that* slow\n* WalkDir might be a poor choice when performances matter and the operation involves dealing with a lot of files\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanop%2Fwalk_pace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanop%2Fwalk_pace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanop%2Fwalk_pace/lists"}