Skip to content

Performance issues after 1000+ chat's #100

@mihok

Description

@mihok
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions