why is this block of code taking so long?
<pre><code>for (int i = 0; i &lt; level.PathLookupVectors()[globalNodePositionIndex][globalNodeChoice].size(); i++)
{
    //adds the correct nodes to the search
    search.push_back(level.PathLookupVectors()[globalNodePositionIndex][globalNodeChoice][i]);
}
</code></pre>

<p>and it's a 64 bit system. </p>

<p>the program is taking about 30 seconds to execute one pass of the loop. Is there a reason why this is happeneing? I'm not sure what info you guys will need but ask and i'll get it for you.</p>

<p>search is a vector of integers and pathLookupVectors is a vector of vectors of vectors of ints.</p>

<p>search usually ends up being populated by an average of 27 integers but can be a little higher or as low as one.</p>

<p>I did notice I'm passing pathLookupVectors by value. could that be the problem?</p>
