alex60217101990
alex60217101990
Great suggestion! However, the method `func (ref Ref) Ptr() (string, error)` could be slightly improved, as the current implementation has a couple of issues: - Iterates twice: once for size...
@anderseknert Okay, I agree with you. One small question, wouldn't it perhaps be better if the object were allocated on the stack rather than the heap ? ```go buf :=...
In addition to your comment. I looked at the code via the link you attached, thank you. Looking at Go's stdlib `url.escape()` implementation ([source](https://cs.opensource.google/go/go/+/refs/tags/go1.25.5:src/net/url/url.go)) To correctly pre-allocate the buffer, two...
So, these are specific changes to optimize things without altering or breaking the core logic. Or am I mistaken? Only the benchmarks whose logic actually reaches the modified code would...