pydio / cells

Future-proof content collaboration platform
https://pydio.com
GNU Affero General Public License v3.0
1.78k stars 173 forks source link

Avoid unnecessary byte/string conversion #489

Closed Juneezee closed 1 year ago

Juneezee commented 1 year ago

We can use alternative functions to avoid unnecessary byte/string conversion calls and reduce allocations

  1. (*strings.Builder).Write ^1 / (*strings.Builder).WriteString ^2
  2. (*regexp.Regexp).Match ^3 / (*regexp.Regexp).MatchString ^4
  3. (*os.File).Write ^5 / (*os.File).WriteString ^6