Re:Making a Go program 70% faster by avoiding common mistakes
by al2o3cr on Thursday March 17, 2016 @09:30AM
(#11304173)
I'd also recommend that the author look into tidying up the `TransactionType` field at ingest - those `ToLower` calls aren't free either, and if you've got control of the system writing the data it's easier to just store a consistent case.
Failing that, `EqualFold` may be worth looking at. It expresses the same intent, dunno if it's more or less efficient.
Failing that, `EqualFold` may be worth looking at. It expresses the same intent, dunno if it's more or less efficient.