Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Optimize quote removal#62

Merged
sethsamuel merged 3 commits into
mainfrom
seth.samuel/trim-quotes
Apr 22, 2025
Merged

Optimize quote removal#62
sethsamuel merged 3 commits into
mainfrom
seth.samuel/trim-quotes

Conversation

@sethsamuel
Copy link
Copy Markdown
Contributor

@sethsamuel sethsamuel commented Apr 22, 2025

Use hasQuotes instead of an array of quote positions to reduce allocations.

Results here feel almost too good to be true, possibly fixed a bug in the quote detection behavior that was doing unnecessary work.

ns/op: -7.28%
B/op: -19.80%
allocs/op: -4.25%

@sethsamuel sethsamuel changed the title WIP Optimize quote removal Apr 22, 2025
@sethsamuel sethsamuel marked this pull request as ready for review April 22, 2025 15:11
@sethsamuel sethsamuel requested a review from a team as a code owner April 22, 2025 15:11
@sethsamuel sethsamuel merged commit ac9c3ea into main Apr 22, 2025
8 checks passed
@sethsamuel sethsamuel deleted the seth.samuel/trim-quotes branch April 22, 2025 15:15
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.

2 participants