Perhaps it will increase the performance if you build your graphics array in the loop and do the rendering outside.
1. consider using JSON instead of XML. It's smaller and quicker to evaluate; most browsers have JSON parsing done natively now.
2. examine all your looping code and optimize it by moving initialization items outside the loop. I know, standard procedure, but if you profile you may find you're creating objects, parsing strings, etc. hundreds of times instead of just once.
3. make sure that you are not concatenating large strings with Javascript. This type of operation absolutely does not scale linearly (it's far worse). If you need to build a large string, use an array then do a single array.join operation at the end.
As it stands, I have a JavaScript loop, inside of which a graphic is created and added to the map, which happens 500 times. This seems to be the standard thing I see in all the examples.
3. make sure that you are not concatenating large strings with Javascript.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.