From 07ff8b8458a042987c9d11cae5b5b1dfaa934097 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Tue, 28 Jan 2025 14:33:39 -0500 Subject: [PATCH] perf: `luau` hot loop micro-optimization - use qsv_break_used sentinel flag to see if we need to check qsv_break invocations during main hot loop, taking advantage of if short-circuiting - also fix usage text typo --- src/cmd/luau.rs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/cmd/luau.rs b/src/cmd/luau.rs index 0cff5170c..006fd9a72 100644 --- a/src/cmd/luau.rs +++ b/src/cmd/luau.rs @@ -178,7 +178,7 @@ Luau options: Luau globals and a bit more performance. Note: access to Luau globals thru _G remains even with -g. --colindex Create a 1-based column index. Useful when some column names - mask standard Luau globals. Automatically enabled with--no-headers. + mask standard Luau globals. Automatically enabled with --no-headers. -r, --remap Only the listed new columns are written to the output CSV. Only applies to "map" subcommand. -B, --begin