Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for more performance
Message
De
16/04/2016 20:56:35
 
 
À
15/04/2016 01:30:54
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01634763
Message ID:
01634888
Vues:
23
>(a) Store all the items in an array rather than having to retrieve them from the DOM.

Now, that's interesting. If I have to push it more, I would probably store the object in the array as well.

>(b) Only call the server to obtain new items (rather than round tripping the whole page - which, I assume Michel is doing)

Yes, a server call is only done when a new item has to be added.

>(c) Only update the DOM for items where the elapsed time has changed ( which, given that Michel seems to be doing this every second, should be very few items)

This is done every 60 seconds. But, optimization could also be done around that because only related items would apply based on their time stamp. For example, if I an item has been there for more than an hour, then it should only be updated every hour and not being updated with the same value every 60 seconds. Then, the same would apply for an item which has a time stamp of two days for example. In that case, one update per day. That would then be another field in the array to indicate the type and it would be updated accordingly when we pass over an hour or a day.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform