From 6fc6e0c7dd6f7ae69c1a912bfc4b84678293fb87 Mon Sep 17 00:00:00 2001 From: Nathan Daly Date: Mon, 27 Jul 2020 22:44:23 -0400 Subject: [PATCH] Add info on Debug flags --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 35c90f4..bf23aa7 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,12 @@ Running x_plus_one. 11 ``` +### Flags + +For maximum performance in deployed software, you can disable all runtime assertions and debug code by setting this environment variable before building Salsa: `SALSA_STATIC_DEBUG=false`. + +Or, for slightly less peformance gain, you can toggle it at runtime via `Salsa.Debug.disable_debug()`. + ## Credits This package was closely modelled off of the Rust