Repository navigation
Optimize Get-ChildItem -Recurse -Name - #12834
Closed
Ilya (iSazonov) wants to merge 15 commits into
Closed
Ilya (iSazonov) wants to merge 15 commits into
Ilya (iSazonov) wants to merge 15 commits into
Conversation
Ilya (iSazonov)
force-pushed
the
filesystemprovider-getnames
branch
from
June 1, 2020 08:45
293d359 to
6c461d5
Compare
Ilya (iSazonov)
force-pushed
the
filesystemprovider-getnames
branch
from
June 2, 2020 13:41
5b8fae2 to
d9673b0
Compare
Ilya (iSazonov)
marked this pull request as ready for review
December 17, 2020 16:01
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
Ilya (iSazonov)
force-pushed
the
filesystemprovider-getnames
branch
from
December 28, 2020 05:46
5ff026a to
149b003
Compare
Ilya (iSazonov)
force-pushed
the
filesystemprovider-getnames
branch
from
April 23, 2021 12:09
3ed70f0 to
14a71e9
Compare
8 of 22 tasks
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary
Addresses #9119
Intention is to improve performance without changing current behavior. Later we can more easily fix already known bugs/inconsistencies and add new features.
Performance win is up to 50%.
Allocations are dramatically reduces if filtering is used (now no allocations are for discarded paths).
Today the .Net API does not support:
Depth(tracking issue) and we use a workaround in the case.PR Context
Current implementation is a generic (common for all providers) enumerating code which is very expensive. New implementation uses new .Net API for file enumerating. The API is very fast and efficient, especially if filtering is used.
The follow intention is to use this approach later for
dir -recursetoo and then fix known bugs and add new features.PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.