Click here to read about this example in my blog

Polylines in Google maps

Encoded Polylines (client-side)

This example has lots of coordinates that are placed on the map by adding several encoded polylines. The encoding is performed with a Javascript in the browser.

This map has much better performance than the one using regular polylines. Loading time may still be long but when you start interacting with the map (zooming) you'll notice a big difference.