Files
pipewire-soundpad/pwsp-gui
Tarasov Aleksandrandgoogle-labs-jules[bot] 3d1bc24c21 perf(gui): optimize filesystem scanning by avoiding unnecessary PathBuf allocations (#193)
The directory scanning loop allocated a new `PathBuf` for every file encountered by unconditionally calling `entry.path()` and frequently querying disk metadata via `p.is_dir()`.

This patch refactors the code to first check `entry.file_type()` and use `entry.file_name()` for extension matching. This delays or completely avoids creating a `PathBuf` string allocation and stat syscall for all non-directory and non-supported media files, resulting in an ~80% performance boost when scanning directories dominated by non-audio assets.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-09-09 11:24:29 +03:00
..
2026-07-26 21:36:22 +03:00