Hello, relative XML and TinyXml newbie here. My C app currently stores a bunch of data in static predefined multidimensional arrays. During runtime this data is referenced about four times per second in a timer loop.
I'm moving all my data into an XML format, undoubtedly a good thing, but my question is do I want to parse this data into dynamic array storage when i load the XML data and then continue to have my loop look up the data from the arrays, or do i want to use tinyxml statements (ie: first child, next element, query attribute, etc) to access my data each time i loop?
i'm assuming there is much more overhead traversing an xml tree to access a piece of data, than just looking it up directly from an array, so my inclination is to just do the parse once, and then do lookups from array storage. is that wrong?
thanks!
ken
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, relative XML and TinyXml newbie here. My C app currently stores a bunch of data in static predefined multidimensional arrays. During runtime this data is referenced about four times per second in a timer loop.
I'm moving all my data into an XML format, undoubtedly a good thing, but my question is do I want to parse this data into dynamic array storage when i load the XML data and then continue to have my loop look up the data from the arrays, or do i want to use tinyxml statements (ie: first child, next element, query attribute, etc) to access my data each time i loop?
i'm assuming there is much more overhead traversing an xml tree to access a piece of data, than just looking it up directly from an array, so my inclination is to just do the parse once, and then do lookups from array storage. is that wrong?
thanks!
ken