Skip to content

Conversation

Stubbjax
Copy link

This change improves INI whitespace read performance. The existing logic is inefficient as strlen(tempBuff) is O(n) and called on every loop iteration, making the loop O(n²). The null terminator is now checked directly and each character is iterated only once, reducing loop complexity to O(n).

@Stubbjax Stubbjax self-assigned this Aug 26, 2025
@Stubbjax Stubbjax added Minor Severity: Minor < Major < Critical < Blocker Performance Is a performance concern Gen Relates to Generals ZH Relates to Zero Hour Refactor Edits the code with insignificant behavior changes, is never user facing labels Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gen Relates to Generals Minor Severity: Minor < Major < Critical < Blocker Performance Is a performance concern Refactor Edits the code with insignificant behavior changes, is never user facing ZH Relates to Zero Hour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants