Skip to content

Commit 8e58b1d

Browse files
committed
fix: Increase timeout and batch size for nix eval
After running some tests, these settings seem to perform about 100-200x times faster than the previous values, at the expense of more memory.
1 parent f9d560d commit 8e58b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/listeners/nix_evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async def realtime_batch_process_attributes(
116116

117117

118118
async def drain_lines(
119-
stream: asyncio.StreamReader, timeout: float = 0.25, max_batch_window: int = 10_000
119+
stream: asyncio.StreamReader, timeout: float = 3.5, max_batch_window: int = 75_000
120120
) -> AsyncGenerator[list[bytes]]:
121121
"""
122122
This utility will perform an opportunistic line draining

0 commit comments

Comments
 (0)