seek and ye shall find quote


Well as they say, the fastest instruction is the one that is never executed.
Though sure, I was totally lacking an explanation of an alternative.
So in effect you want GetField() to get a value from the correct outer vector, and from the inner vector position corresponding to how many times GoToNextRecord() has ben called, right?
Well then you're duplicating a lot of work. Each time through the loop you're constructing several strings from string literals, and essentially looking up the index of of the outer vector to find which inner vector corresponds to that field.
The best thing you can do then is to resolve the field name to an outer vector index before the loop, and then inside the loop, just use the index.
Then, as I've hoped, there wont be any such lookups by name, inside the loop at all. Not quite "not doing it at all", but "not doing it in the loop" is the next best thing.
For the actual lookup, you could have a vector< pair<string, int> > and use std::lower_bound, which will be a tad faster than a map lookup.
DaSicilian said:
@in my humble opinion
Get your facts straight…The dems, fanny and freddie blew up the housing market by forcing banks to give loans to folks that couldn’t afford them. There was a time when you had to put 20% down to buy a house…that went away and folks were getting homes for 0% down and no proof of income. This enabled folks that couldn’t normally afford homes and people that bought up into homes they couldn’t afford purchase ‘the dream.’ Bush warned Congress back in 2003 that things were going to blow up because of Clinton/Frank/Dodd policies. But hey accused him of stifling the dream. So..he’s gotten the blame…his fault to the extent that he should have been continually hammering these policies publicly…and didn’t. Frank, Dodd and the like are still pushing for these loans and are hiding the fact that fanny and freddie are near collapse. You think the re market is bad now? Wait….and don’t forget…we haven’t even begun to hear from the commercial re folks. The way this admin is throwing small bizs under the bus…the commercial re is ripe to blow up, too.
YES, GET YOUR FACTS STRAIGHT LIARS -
BUSH’S BLIND FAITH IN UNREGULATED MARKETS STOKED ECONOMIC CRISIS
“No one wanted to stop that bubble,” Mr. Lindsay (Mr. Bush’s first chief economics adviser) said.
“It would have conflicted with the president’s own policies.”
“There is no question we did not recognize the severity of the problems,” said Al Hubbard, Mr. Bush’s former chief economics adviser, who left the White House in December 2007. “Had we, we would have attacked them.”
The Bush administration took a lot of pride that homeownership had reached historic highs,” Mr. Snow (Bush’s former secretary of the Treasury) said in an interview. “But what we forgot in the process was that it has to be done in the context of people being able to afford their house. We now realize there was a high cost.”
THE RECKONING:
White House Philosophy Stoked Mortgage Bonfire (12-20-2008)
http://www.nytimes.com/2008/12/21/business/21admin.html?hp
REALITY <– embrace it delusional in denial wingnuts!





