Hi gane,
The absolute fastest way is to create a web service that generates KML
and then use fetchKml or KmlNetworkLink to plot it in Google Earth.
The slowdown you've been seeing is probably due to a known bug where
API calls perform poorly on Windows. The current, hacky, workaround is
to wrap those API calls (such as createPlacemark) in a dummy call to
fetchKml:
google.earth.fetchKml(ge, '', function() {
// do batch calls here
for (var i = 0; i < 2000; i++)
...createPlacemark here...
});
This effectively tells the plugin to stop what it's doing until the
inner function completes. A true fix for the slowdown is in the works.
Also note that on Mac, this problem shouldn't exist.
Regardless, I'd recommend the first (web service generating KML)
approach.
Thanks,
Roman