meetrevision / playbook

A lightweight, stable, and performance-focused customized version of Windows that enhances privacy and compatibility
https://www.revi.cc
Other
955 stars 75 forks source link

Remove unnecessary computation #18

Closed ghost closed 1 year ago

ghost commented 1 year ago

In the existing code, it is clear that the intention is to set the SvcHostSplitThresholdInKB threshold to a value larger than the installed memory so that svchost.exe instances are combined. Since the registry key is a threshold, the value can be set to the maximum DWORD value (0xFFFFFFFF/4294967295) to achieve the same outcome. No calculations required.