title: Draw graphics (lines) very fast
body: <p>I need to graph a large amount of data points using straight lines and an affine transformation (to scale the graphic so it can fit the view).</p>
  
  <p>Currently, I am using NSBezierPath, but I believe it is quite inefficient (because points are copied to the bezier path prior to being graphed). I got improvements by cutting my data into 50-points chunks (NSBezier path is much faster).</p>
  
  <p>But I understand there may be a better way using core graphic or CG.... function calls ?</p>
  
  <p>My app is written in swift.</p>