if a function is taking longer to execute every time it is called, what could that imply?
Name:
Anonymous2012-03-05 13:31
That's it's unpure and you're modifying some state that's hidden to the user. Unless there's input, in which the time taken might have something to do with increasing or decreasing input.
alright I'm not getting anywhere. Heres the offending code, for some reason when it hits the return it takes about twice as long as the previous time to execute. I don't think it is a memory leak as this code and the function that calls it aren't concerned with memory allocation (but what do I know)
std::vector<std::vector<Segment> > Environment::_AIScopeSubArray(int yPos, int xPos, int AIScope)
{
std::vector<std::vector<Segment> > subScope;
int scopeRad = AIScope/2;