MCPcopy Create free account
hub / github.com/DFIR-ORC/dfir-orc / ProcessorCount

Function ProcessorCount

src/OrcLib/ZipCreate.cpp:66–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66UInt32 ProcessorCount()
67{
68 SYSTEM_INFO si = {};
69 GetSystemInfo(&si);
70 return si.dwNumberOfProcessors > 0 ? si.dwNumberOfProcessors : 1;
71}
72
73// Cap the LZMA2 thread count so peak compression memory no longer scales with the host core count.
74// The encoder splits 'mt' as (block-threads x match-finder-threads); bt4 (Normal and above) uses 2

Callers 1

ThreadCountForLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected