Click here to Skip to main content
13,254,754 members (52,962 online)
Rate this:
Please Sign up or sign in to 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 19-Sep-11 20:23pm
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Uday P.Singh 20-Sep-11 1:30am
Agree 5!
TorstenH. 20-Sep-11 2:11am

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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171114.1 | Last Updated 20 Sep 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100