emersion / go-msgauth

🔏 A Go library and tools for DKIM, DMARC and Authentication-Results
MIT License
170 stars 52 forks source link

dkim: compare with strings.EqualFold instead of ToLower #49

Closed pierrre closed 3 years ago

pierrre commented 3 years ago

It doesn't allocate a new string each time.

Fixes #48

pierrre commented 3 years ago

I don't need a new tag right now, this optimization has a much smaller impact for me than the previous one. :smile: