For those interested, here's the command I used to time downloads: time wget -S http://foothill-web-gis.googlecode.com/svn/data/rooms1.kml?randomnumberhere
Looking at the download speed is insufficient as it doesn't take into account the size of the file, or request latency. Regards, James On Mon, May 30, 2011 at 3:35 PM, James McGill <[email protected]> wrote: > Hi Matt, > > You are correct in inferring that the file is taking too long to fetch. > > By appending a random number (to prevent Google caching the file) you > are effectively making the KML file dynamic - Google must download and > parse the file every time you change that random number. > > I used wget to time downloading that file a few times, and saw a > median download time of 6 seconds and a maximum of 59 seconds (SVN is > probably not well suited to acting as a content server). Ideal > download times would be under 1 second. > > Some suggestions: > * Most importantly, do not append random numbers to your KML file when > your site is in production. Change the URL only when the content of > the underlying KML file has actually changed. During development is > fine. > > * Consider zipping the file and serving it as a *.kmz file. It > compresses from 1.2M to 124K which should download much faster. > > * Serve the file from a faster or more consistent server. I've found > that Google AppEngine works well for static files. > > Regards, > James > > On Mon, May 30, 2011 at 2:31 PM, Matthew C <[email protected]> wrote: >> By the way, >> http://code.google.com/apis/maps/documentation/javascript/forum.html?place=forum/google-maps-js-api-v3 >> seems to be related, but they're discussing dynamically generated KML and >> this is static and there doesn't seem to be an answer there either. Meant to >> mention this thread in the original post, sorry about that. >> -Matt >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Maps JavaScript API v3" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-maps-js-api-v3?hl=en. >> > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
