Skip to content

Conversation

wanghaolong613
Copy link
Contributor

@wanghaolong613 wanghaolong613 commented Oct 16, 2025

  1. Moved the definition of stackBufSize to reduce unnecessary resource consumption.
  2. Special path handling: Handle simple cases first to reduce complex logic.
  3. Modified trailing remove n > 1 && p[n-1] == '/'
  4. Modified the check within the for statement to reduce unnecessary variable comparisons.
image

@wanghaolong613 wanghaolong613 changed the title optimization cleanPath refactor(path): optimization cleanPath Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant