How many string elements in an object is practical before a text file to read and write from is more effecient?
Posted: 16 May 2017, 19:04
I have a hundred or so strings like the following coming to the script every 5 minutes or so: Lastname, Firstname@Campaign@STATE@ALARM@HHmm
My plan involves analyzing 1000 and hopefully even more elements such as the string shown through a nested loop occurring within a 6 - 10 second process, for some hours repeating non stopped.
My question:
If dealing with 1000+ elements s it more effecient to use a file to store the data and constantly read from and write to the file?
OR...
Use an array and just retrieve the data from it's own unique element?
OR...
Is there something else completely I'm not considering?
Theoretically what are the limits and tolerances?
Thanks
My plan involves analyzing 1000 and hopefully even more elements such as the string shown through a nested loop occurring within a 6 - 10 second process, for some hours repeating non stopped.
My question:
If dealing with 1000+ elements s it more effecient to use a file to store the data and constantly read from and write to the file?
OR...
Use an array and just retrieve the data from it's own unique element?
OR...
Is there something else completely I'm not considering?
Theoretically what are the limits and tolerances?
Thanks