8000 Principal.FindByIdentity() method is extremely slow · Issue #34598 · dotnet/runtime · GitHub
[go: up one dir, main page]

Skip to content
Principal.FindByIdentity() method is extremely slow #34598
@iSazonov

Description

@iSazonov

In PowerShell repo we started porting Microsoft.PowerShell.LocalAccounts module to System.DirectoryServices.AccountManagement API (from p/invokes).
We had to use workarounds because Principal.FindByIdentity() methods is extremely slow - up to 100x(!) vs Principal.PrincipalSearcher().

On my notebook Get-LocalUser name ported cmdlet takes 2.8 sec(!) vs 25 ms if a workaround is used.

Metadata

Metadata

Assignees

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0