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).
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).
But I understand there may be a better way using core graphic or CG.... function calls ?
My app is written in swift.