Open igalic opened 9 months ago
Some context: This was discussed in our CfgMgmtCamp hackathon... The idea was that by using an iota to store the resource kind, we'd save a bunch of memory by not holding the "string" everywhere.
Thanks @igalic for writing it up!
Description:
Currently, we have a lot of strings that denote meaning that are being passed around a lot.
We should replace those with a
Iota
s. This should give us a small performance boost.If they do need to be used as actual strings, we can implement a
toString
function for that: https://golangbyexample.com/iota-in-golang/