Skip to content

Commit

Permalink
swap rstrip and lskip to reduce execution time of strlen() (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
isidroas authored Oct 20, 2024
1 parent ed45251 commit cd5f939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ini.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit cd5f939

Please sign in to comment.