This loop is going slow because of the push_back part at the end, can i make this go any faster?
Basically this is what it does
1) Reads file into a char array
2) takes each char in the array and transfers to vector.
char *tempItem = new char[1];
delete [] tempItem;
for (unsigned long int q = 0; q < tableCount; q++)
{
//for each (AoE2Wide::DrsItem item in inTables[q].Items)
for (unsigned long int j = 0; j < inTables[q].Items.size(); j++)
{
tempItem = new char [inTables[q].Items.at(j).Size];
inFileDrs.read(tempItem, inTables[q].Items.at(j).Size);
for (unsigned long int k = 0; k < inTables[q].Items.at(j).Size; k++)
inTables[q].Items.at(j).Data.push_back(tempItem[k]);
delete [] tempItem;
}
}