Presets
Prometheus ships with these preset names in src/presets.lua:
MinifyWeakVmify(test-oriented helper preset)MediumStrong
Use with:
prometheus-lua --preset Medium ./file.lua
Minify
- no step transforms (
Steps = {}) - variable renaming still applies through pipeline settings
- best for size reduction and minimal runtime overhead
Weak
Steps:
VmifyConstantArrayWrapInFunction
Medium
Steps:
EncryptStringsAntiTamper(UseDebug = false)VmifyConstantArrayNumbersToExpressionsWrapInFunction
Strong
Steps:
VmifyEncryptStringsAntiTamper(UseDebug = false)VmifyConstantArrayNumbersToExpressionsWrapInFunction
Choosing quickly
- Start with
Medium. - Move to
Strongonly after benchmarking your runtime path. - Use
Minifywhen you want readability reduction only through compression/renaming style behavior.