title: NSData - Which is better in terms of memory usage: initWithContentsOfURL or NSURLConnection
body: <p>I want to get an NSData object's contents from a URL. What is the more efficient way of doing this in terms of memory usage dataWithContentsOfURL (or initWithContentsOfURL) or using NSURLConnection?</p>
  
  <p>Should I use</p>
  
  <pre><code>NSData *data = [[NSData alloc] initWithContentsOfURL:myURL]
  </code></pre>
  
  <p>or</p>
  
  <pre><code>NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;error];
  </code></pre>