PowerShell / PowerShell/PSScriptAnalyzer

Time sum to scan sub folders is much longer than scanning parent folder

Open
#469 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area - Performance Issue - Enhancement
Dominant language
C#
Stars
2.2k
Forks
414
Avg merge
13h 1m
Merged PRs (30d)
2

Description

In an example of folder "A" contains sub folder "B" and "C".

Scanning folder "A" recursively took 53 seconds.

Scanning folder "B" recursively took 38 seconds.
Scanning folder "C" recursively took 37 seconds.

The sum to scan sub folder is 22 seconds more than scanning the parent folder.
38+37-53=22.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source files, tests, or entry points. Start by reproducing recursive scans of parent folder A and subfolders B and C, then trace the scan timing through the analyzer to identify why the totals differ. Done means explaining the discrepancy and adding a focused fix or regression coverage if the cause is confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
devtools, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.