| 64 | } |
| 65 | |
| 66 | UInt32 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 |
no outgoing calls
no test coverage detected