From b416d40835332e64ebf2f172c873a67b07231f57 Mon Sep 17 00:00:00 2001 From: Isidro Arias Date: Fri, 18 Oct 2024 16:52:11 +0200 Subject: [PATCH] swap rstrip and lskip to reduce execution time of strlen() --- ini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ini.c b/ini.c index f2f9a6a..c00e894 100644 --- a/ini.c +++ b/ini.c @@ -164,7 +164,7 @@ int ini_parse_stream(ini_reader reader, void* stream, ini_handler handler, start += 3; } #endif - start = ini_lskip(ini_rstrip(start)); + start = ini_rstrip(ini_lskip(start)); if (strchr(INI_START_COMMENT_PREFIXES, *start)) { /* Start-of-line comment */