Avoid unnecessary memory allocations in decodeMapFromStruct
Avoid unnecessary memory allocations in decodeMapFromStruct

Splits allocates memory. This burdens the garbage collector.
By using string.Index to parse string you will be more cache
aware and do not create gabbage.

mitchellh/mapstructure