node version: v8.7.0
npm (or yarn) version: yarn v1.2.1
What you did:
While sitting with the Operator open and the Show HN post gaining relevance on Hacker News, there was considerable performance issues encountered as the number of chats increased to over 1000+.
What happened:
- Sluggish chat list, sometimes unresponsive
- Sluggish loading messages in active chat
- Sluggish typing
Causing me unable to respond quickly enough to some folks trying out the demo site. Therefore a less than optimal experience.
Problem description:
I think the way we handle chat's on the backend of the operator may not be optimal. We discussed this a bit in RL where there is a tradeoff between easily being able to look up a chat by its chat ID via having all chats as an object vs having to do a heavier lookup function if we kept chat objects as an array. This could be the source of the problem but it could also just be the sheer number and the amount of DOM that has to be rendered.
Suggested solution:
Investigate the source of the performance issues, and based on that discuss a fix here.
nodeversion:v8.7.0npm(oryarn) version:yarn v1.2.1What you did:
While sitting with the Operator open and the Show HN post gaining relevance on Hacker News, there was considerable performance issues encountered as the number of chats increased to over 1000+.
What happened:
Causing me unable to respond quickly enough to some folks trying out the demo site. Therefore a less than optimal experience.
Problem description:
I think the way we handle chat's on the backend of the operator may not be optimal. We discussed this a bit in RL where there is a tradeoff between easily being able to look up a chat by its chat ID via having all chats as an object vs having to do a heavier lookup function if we kept chat objects as an array. This could be the source of the problem but it could also just be the sheer number and the amount of DOM that has to be rendered.
Suggested solution:
Investigate the source of the performance issues, and based on that discuss a fix here.