title: XML parsing speed up. PHP
body: <p>I'm here to ask about some concepts that can make this process faster: </p>
  
  <pre><code>foreach($xml-&gt;results-&gt;concepts-&gt;concept as $value2){//This is the original game.
      $total_concepts++;
      foreach($xml1-&gt;results-&gt;concepts-&gt;concept as $value1){//This is similar game. 
          $total_similar_concepts++;
          if(strcmp($value2-&gt;name, $value1-&gt;name)==0){
              $comparisons++;
              break;
          }
      }
  }
  </code></pre>
  
  <p>Essentially, I'm comparing each 'concept' of the original game to each 'concept' of each 'similar' games.  </p>
  
  <p>This algorithm takes about 11.6 seconds on average to complete.  Is there something I can do to make this run faster?  I was thinking that perhaps parsing it as xml wasn't the best I could do. </p>