This script optimizes macOS performance by disabling the following:
- Spotlight
- Desktop effects, animations and transparency
- Apple core services (A bunch of them, read the script)
- Safari and Safari services
- Application state on shutdown
- Facial recognition
- Telemetry
- Location services
- Java installation on demand
- Telnet
- FTP
- NETBIOS
- Automatic Updates
If you really need this things just don't use the script or make a modification.