title: Best way to loop through an array as fast as possible?
body: <p>Right now, my app retrieves around 1000 CKRecords which gets put into an array. I need to loop through this array later on. When I just had about 100 records to loop through my app worked smoothly and fast, but now it gets slower and slower as the number of records grow. I plan to have around 3000 CKRecords to retrieve so this could be a serious problem for me.</p>
  
  <p>This is what I have come up with for now:</p>
  
  <pre><code>//movies == The NSMutableArray
  if let recordMovies = movies.objectEnumerator().allObjects as? [CKRecord] {
          for movie in recordMovies {
         //Looping
         print(movie.objectForKey("Title") as? String)
         {
      }
  </code></pre>
  
  <p>But this doesn´t help a lot, seeing as I have to turn the NSMutableArray into an Array of CKRecords. I do this because I have to access the CKRecords attributes when looping, such as movieTitle. What measures can I take to speed up the looping process</p>