Closed 56KBs closed 7 months ago
I've been reading through the codebase some more and have spotted some other areas of code that could be modified to reduce CPU time/allocations/memory use - Would you be interested in me raising PRs for these @emersion? If so would you prefer one PR with multiple enhancements committed or one PR per enhancement?
Feel free to send PR(s). Note that I would rather keep the codebase simple: as long as the optimized versions don't decrease readability too much I'd welcome such changes. Regarding the PR(s), I don't mind as long as the changes are properly split logically per commit, so as you prefer: either one PR and you craft the logical commits, either multiple PRs and I can squash when merging.
Only compile the regex for removing the b= value once during verification, reducing allocations & improving performance.