MCPcopy Create free account
hub / github.com/WebAssembly/wabt / GetDefaultJobCount

Function GetDefaultJobCount

test/run-tests.py:901–906  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

899
900
901def GetDefaultJobCount():
902 cpu_count = multiprocessing.cpu_count()
903 if cpu_count <= 1:
904 return 1
905 else:
906 return cpu_count // 2
907
908
909def main(args):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected