Mango-information-systems / twitto_be

twitto_be is a real-time tweets analytics dashboard
https://twitto.be
Other
12 stars 2 forks source link

charts loading optimization #114

Closed mef closed 7 years ago

mef commented 7 years ago

Currently (v2.2.0), on client connection, the server sends the top hashtags / mentions data before sending data for the map.

computing top hashtags and mentions iswynchronous and slow, this prevents the map from being rendered until top hashtags / mentions are processed and sent.

Swapping the socket.emit directives so that map data is transmitted before the top hashtags / mentions will allow the map component to be rendered earlier.

A further upgrade can consist in making the computation asynchronous (emit in the callback).