Skip to content

Commit

Permalink
perf - check flags before enumerating child items.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Jan 23, 2024
1 parent 4bba2a9 commit d0f1b0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uSync.BackOffice/SyncHandlers/SyncHandlerRoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,9 @@ private IEnumerable<uSyncDependency> GetContainerDependencies(TContainer parent,
{
if (!HasDependencyCheckers()) return Enumerable.Empty<uSyncDependency>();

if (!flags.HasFlag(DependencyFlags.IncludeChildren))
return Enumerable.Empty<uSyncDependency>();

var dependencies = new List<uSyncDependency>();

var containers = GetFolders(parent);
Expand Down

0 comments on commit d0f1b0d

Please sign in to comment.