By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,007 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,007 IT Pros & Developers. It's quick & easy.

Need speed increase while reading large chunk of data

P: 2
The discussion about the title already available in this forum. But i want to know how to copy the 2d array content or from a buffer into vector.
or is there any other way to read data into vector.
Nov 22 '06 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 1,510
The discussion about the title already available in this forum. But i want to know how to copy the 2d array content or from a buffer into vector.
or is there any other way to read data into vector.
what do you mean by a buffer? is the data in
1. a file to be read and put into a vector - if so is the file contents text or binary?
2. in an array[][] to be copied into a vector

what is the data? would you require the resultant vector to be 1D or 2D, etc? give an example
Nov 22 '06 #2

P: 2
what do you mean by a buffer? is the data in
1. a file to be read and put into a vector - if so is the file contents text or binary?
2. in an array[][] to be copied into a vector

what is the data? would you require the resultant vector to be 1D or 2D, etc? give an example
i am reading log data.It is a bulk one nearly 1GB.I need to put all in memory for later process.I can read all with in 2 min.But when i am using the vector to store the value(read from the file) it takes more than 10 min.I want to reduce the time.same query already posted in this forum,where the following is adviced.First we need to read all the data into buffer then copy it into vector.I want to try this thing.so i want to know how to copy the data from the buffer into vector with out using push back.or else is there any other alternative to reduce the time which is required to read the log data from the file.The resultant vector should to be a structure pointer.

Thanks
Nov 29 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.