From cd5f93974067a143434b0e9a1c1a8ae906af599b Mon Sep 17 00:00:00 2001 From: Isidro Date: Sun, 20 Oct 2024 15:14:44 +0200 Subject: [PATCH] swap rstrip and lskip to reduce execution time of strlen() (#177) --- 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 */