Posted 2020-02-27Updated 2025-10-31 Jaco Liu Goa few seconds read (About 85 words)Go:stringstring常用拼接方法+= 来拼接bytes.Bufferstrings.Builder ( >= go1.10 )拼接方法性能对比使用 += 的方法性能是最慢的,性能消耗相对最大;Buffer和Builder性能相差无几,Builder在内存的使用上要略优于Buffer;官方推荐strings.Builder,优点: 性能好,代码清晰;Go:stringhttps://www.wdft.com/765e2161.htmlAuthorJaco LiuPosted on2020-02-27Updated on2025-10-31Licensed under#GoGo(string)
2025-10-20Efficiency optimization practice of oh-my-zsh (omz) configuration parameters(macOS下oh-my-zsh omz配置参数效率优化实践,对开发人员用户高频使用zsh场景建议)macos / oh-my-zsh / zsh / zshrc / Optimization