C
Ciro
Hi Guys, I'm developing an application that sends ICMP echo requests (ping)
via the .net Ping Class. I've some informations related to the network such
as IP addresses,Urls,SiteNames and so stored in a xml file. I need to use
theese informations in my ping method. The ping method will ping the sites
and change the background color property of some shapes I've created.
In the first version of the application I created an Arraylist of all the
Shape Controls an some arrays to store IP Adresses and SiteNames.The arrays
was created at runtime just when the application was started.
So the method had just to iterate throw those arrays.
The question is: Do you think is better to read the values from the xml file
each time I call the ping method (say once per second) or should I retrieve
the values from the file and store them in a Array or Arraylist or whatever?
Which of the two is the better performing way? I guess if I create Arrays
I'll use much more memory but if have to read through the xml structure each
time this would be processor consuming. Is that right?
via the .net Ping Class. I've some informations related to the network such
as IP addresses,Urls,SiteNames and so stored in a xml file. I need to use
theese informations in my ping method. The ping method will ping the sites
and change the background color property of some shapes I've created.
In the first version of the application I created an Arraylist of all the
Shape Controls an some arrays to store IP Adresses and SiteNames.The arrays
was created at runtime just when the application was started.
So the method had just to iterate throw those arrays.
The question is: Do you think is better to read the values from the xml file
each time I call the ping method (say once per second) or should I retrieve
the values from the file and store them in a Array or Arraylist or whatever?
Which of the two is the better performing way? I guess if I create Arrays
I'll use much more memory but if have to read through the xml structure each
time this would be processor consuming. Is that right?