-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
--files performance regression in 0.8.0 #820
Copy link
Copy link
Closed
Labels
bugA bug.A bug.
Description
What version of ripgrep are you using?
0.8.0
What operating system are you using ripgrep on?
Windows 10
If this is a bug, what are the steps to reproduce the behavior?
Using an old commit of the Chromium sources (git clone https://chromium.googlesource.com/chromium/src) as corpus (~230k files).
With 0.8.0 --files runs about 4x longer:
PS C:\devel\testWorkspace> (Measure-Command { & 'C:\devel\ripgrep-0.8.0-x86_64-pc-windows-msvc\rg.exe' --files | Measure-Object –Line | Out-Default }).TotalSeconds
Lines Words Characters Property
----- ----- ---------- --------
234319 [files]
43.309153 [seconds]
Than with 0.7.1:
PS C:\devel\testWorkspace> (Measure-Command { & 'C:\devel\ripgrep-0.7.1-x86_64-pc-windows-msvc\rg.exe' --files | Measure-Object –Line | Out-Default }).TotalSeconds
Lines Words Characters Property
----- ----- ---------- --------
234319 [files]
11.2432563 [seconds]
Using Process Monitor it looks like 0.8.0 accesses individual files a lot more:

Than 0.7.1, which seems to only access folders:

/cc @roblourens
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugA bug.A bug.