From aa2f547cf2b6136dc60f541f30c27a426ec7c6c8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 4 Jul 2025 10:57:22 +0300 Subject: refactor: change turbo boost to be enabled by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed environment variable from DTAIL_TURBOBOOST_ENABLE to DTAIL_TURBOBOOST_DISABLE - Changed config field from TurboModeEnable to TurboBoostDisable - Turbo boost is now enabled by default and must be explicitly disabled - Updated all code references, documentation, and examples - No change in functionality, only inverted the boolean logic This makes turbo boost opt-out rather than opt-in, providing better default performance for large files while allowing users to disable it for scenarios where it adds overhead. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- internal/config/initializer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/config/initializer.go') diff --git a/internal/config/initializer.go b/internal/config/initializer.go index e750a1a..146d1a0 100644 --- a/internal/config/initializer.go +++ b/internal/config/initializer.go @@ -92,10 +92,10 @@ func (in *initializer) processEnvVars(args *Args) { if len(sshPrivateKeyPathFile) > 0 && args.SSHPrivateKeyFilePath == "" { args.SSHPrivateKeyFilePath = sshPrivateKeyPathFile } - // Check if turbo mode should be enabled from environment variable - // This allows backward compatibility with existing scripts - if Env("DTAIL_TURBOBOOST_ENABLE") { - in.Server.TurboModeEnable = true + // Check if turbo boost should be disabled from environment variable + // Turbo boost is enabled by default, can be explicitly disabled + if Env("DTAIL_TURBOBOOST_DISABLE") { + in.Server.TurboBoostDisable = true } } -- cgit v1.2.3