3 ms·
I loop through for 50-500 calls per batch That's entirely besides the point. By the time you're interacting with the data it'll have been parsed in to a struct
by onion2k 12y ago
I loop through for 50-500 calls per batch
That's entirely besides the point. By the time you're interacting with the data it'll have been parsed in to a struct in memory, so the initial format won't make any difference.
The only difference will be the time it takes to instantiate the parse, load in the data, and parse it. That'll be a relatively trivial length of time regardless of what format you pick. JSON could be twice as fast (total guess) but if that means it's 10ms instead of 20ms your saving isn't worth worrying about unless this is something that's happening many times a second. I'd just stick with the working code and move on.