Skip to content

perf(apis): optimize string padding function for large inputs#98

Open
CreeptoGengar wants to merge 1 commit intozkemail:mainfrom
CreeptoGengar:gena
Open

perf(apis): optimize string padding function for large inputs#98
CreeptoGengar wants to merge 1 commit intozkemail:mainfrom
CreeptoGengar:gena

Conversation

@CreeptoGengar
Copy link
Copy Markdown

  • Replace append() with extend_from_slice() and resize()
  • Add pre-allocation and edge case handling
  • Improves performance for large strings by 1.5-2x

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