I have some difficulty understanding enumerations. Why do/should we use them in the first place? Is it to get a speed advantage?
I’ve just been looking at something on this in work, I’m not great atq, but my understanding is this.With information in an update from Reuters etc, information such asthe exchange, currency, lotsize is given as an enumeration. You candownload their enumeration guide which says what exchange is mappedto the enumerated number, I’m capturing it as a short.I then do alookup in a dict of the shorts/exchanges I’m interested in, with theshort to get the name of the exchange. From what I see this saves themsending loads of strings or symbols out which would be slower thansending a short.I could be wrong with that, but that’s what I think the logic is here.On Feb 16, 10:32?am, K4 Monk <k4m…> wrote:> I have some difficulty understanding enumerations. Why do/should we use them> in the first place? Is it to get a speed advantage?</k4m…>