title: coreData and collectionView slowing app
body: <p>I presently have an array of managedObjects which is the model for my collectionView.  The collectionView populates it's cells by accessing the various properties of the managedObject in the array at the appropriate indexPath.  I have noticed my collectionView scrolling is not smooth and wondering if I am going about this the wrong way and perhaps I should change my approach.</p>
  
  <p>my model is an array of messages stored in coreData:</p>
  
  <pre><code>&gt; var messages = [NSManagedObject]()
  </code></pre>
  
  <p>in my cellForItemAtIndexPath I populate the textView's by referring to the messages array:</p>
  
  <blockquote>
    <p>cell.textView.text = messages[indexPath].valueForKey("text") as! String</p>
  </blockquote>
  
  <p>My question is whether or not this is an efficient way to populate a collectionView or if accessing coreData is slowing my app and there may be a better approach.  Thx</p>
  
  <p>Below is the result of looking at instruments.  The first value is just an address but seems to be taking up a lot of time.  Not sure how to find out the method from just the address value of the symbol...</p>
  
  <p><a href="https://i.stack.imgur.com/WVImT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WVImT.png" alt="enter image description here"></a></p>