I am creating a "real-time" process that takes data from a proprietary formatted OHLCVTBA file being updated by SierraChart. Code that reads the data and creates a dataframe using a generator is posted on pastebin. [removed dead link].
I have realized that my structure (new data driven) is wrong and I'm about to reorganize it. PhE's question and Wes's response have taken me in the direction of filling a pre-populated dataframe which works well. My questions here are:
Is it faster to hold my dataframe and pointers as global variables or to pass them to and from the various functions that use them? Also, are there other considerations that should drive this choice?
Thanks.