Avoid string-to-byte conversion
Do not create byte slices from a fixed string repeatedly. Instead, perform theconversion once and capture the result.
Bad | Good |
---|---|
|
|
|
|
Do not create byte slices from a fixed string repeatedly. Instead, perform theconversion once and capture the result.
Bad | Good |
---|---|
|
|
|
|
本文档使用 BookStack 构建