MCPcopy Index your code
hub / github.com/python/mypy / max_batch_size

Method max_batch_size

mypy/build.py:1433–1439  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1431 return batch
1432
1433 def max_batch_size(self) -> int:
1434 batch_frac = 1 / len(self.workers)
1435 if sys.platform == "linux":
1436 # Linux is good with socket roundtrip latency, so we can use
1437 # more fine-grained batches.
1438 batch_frac /= 2
1439 return int(self.size_in_queue * batch_frac)
1440
1441 def submit_to_workers(self, graph: Graph, sccs: list[SCC] | None = None) -> None:
1442 if sccs is not None:

Callers 1

submit_to_workersMethod · 0.95

Calls 2

lenFunction · 0.85
intClass · 0.85

Tested by

no test coverage detected