From 098555517499fe28bc6198e483d78877e9fcad51 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 15 Nov 2024 18:59:04 -0300 Subject: [PATCH] fix: tunning no yielding limit --- .../Internal/BranchContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Codibre.EnumerableExtensions.Branching/Internal/BranchContext.cs b/src/Codibre.EnumerableExtensions.Branching/Internal/BranchContext.cs index 7d22bcc..c0c8188 100644 --- a/src/Codibre.EnumerableExtensions.Branching/Internal/BranchContext.cs +++ b/src/Codibre.EnumerableExtensions.Branching/Internal/BranchContext.cs @@ -6,7 +6,7 @@ namespace Codibre.EnumerableExtensions.Branching.Internal; internal sealed record BranchContext(Func, ValueTask?>> GetNext, int _branchCount) { private ushort _count = 0; - private readonly ushort _limit = 1024; + private readonly ushort _limit = ushort.MaxValue / 4; internal ValueTask?> FillNext() => ++_count <= _limit ? GetNext(this) : GetYielded();