flow-cli icon indicating copy to clipboard operation
flow-cli copied to clipboard

refactor: use strings.builder

Open chuanshanjida opened this issue 7 months ago • 3 comments

Closes #???

Description

The modernize has added an analyzer for using strings.Builder for string construction. strings.Builder has fewer memory allocations and better performance.

More info: https://github.com/golang/go/issues/75190

Inspired by https://github.com/onflow/flow-cli/pull/2036


For contributor use:

  • [x] Targeted PR against master branch
  • [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • [x] Code follows the standards mentioned here
  • [ ] Updated relevant documentation
  • [x] Re-reviewed Files changed in the Github PR explorer
  • [ ] Added appropriate labels

chuanshanjida avatar Apr 12 '26 08:04 chuanshanjida

@chasefleming @jribbink @janezpodhostnik Hi, Could you please review this PR at your convenience? Thank you very much.

chuanshanjida avatar May 01 '26 18:05 chuanshanjida

I made the same observation, but I saw that it has already been submitted. Good fixes.

box4wangjing avatar May 11 '26 17:05 box4wangjing

@chasefleming @jribbink @janezpodhostnik friendly ping

chuanshanjida avatar Jun 24 '26 13:06 chuanshanjida