title: PolyLines on google maps android for every location change, new polyline or setPoints?
body: <p>In my app I'm drawing a polyline for every location change while I'm trekking around.  This may be for an 8 hour backpacking hike so I may potentially have tens of thousands of points to plot.</p>
  
  <p>In my testing, I've noticed that when I'm zoomed in fairly close (say 17 or 18), it works great even after plotting thousands of lines, but as I zoom out and the map has to render ALL of those lines, it gets sluggish as my phone is trying to process everything.</p>
  
  <p>The other option that I know of to draw polylines is to create a collection (ArrayList) of all of my points (LatLng) and pass that in to the setPoints() method of the PolyLine which draws a single line.  This obviously works great when reviewing the trek after the fact, but I'd imagine the internals of setPoints() has to loop over the entire set for every new point that is added to draw that one line which ultimately is probably worse performance wise because it has to do that whether the older points are visible (within the viewport) or not.</p>
  
  <p>Is there something in between?  A polyline.addPoint() method would be perfect, but I can't find anything like that...  Right now as a stop-gap, I've just made my polylines visibility toggleable so that I can hide them when I zoom far out and need to move the map around, as I said, when I'm zoomed in closely, it's not a problem because it only has to render a fairly small subset.</p>
  
  <p>any ideas/suggestions are greatly appreciated.</p>
  
  <p>TIA</p>