Click here to Skip to main content
15,886,075 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I don't care how fast it will take to make it, but I want to know which is faster to be read from.

For example I am reading in points from a file and put into an array, which would be faster? Which class would read that particular data fast?

The importance of how fast it needs to be is not a problem. It is just for my own theoretical knowledge.
Posted
Comments
Prerak Patel 20-Sep-11 1:25am    
Depends on what data you have.
Philippe Mori 20-Sep-11 19:02pm    
Except if you have a very large number of points (a few millions), then the actual reading should not be an issue if you read the data sequentially once.

1 solution

XML and text files are both text files.

The speed of reading them is the same.

What changes the overall time to finish is how you intend to process and store in memory the data read.

Obviously XML has more structure to process than a plain text file. So for pure bulk data transfer use CSV text files.
 
Share this answer
 
Comments
Uday P.Singh 20-Sep-11 1:30am    
Agree 5!
TorstenH. 20-Sep-11 2:11am    
+5!

And to add in: XML is a common file format on which data is dispatched by a lot of systems.
It's useless to send data when it has no structure!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900