smallcloudai / refact-chat-js

Shared chat code for all IDEs
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Performance improvements when opening new chat #114

Closed MarcoMeijer closed 2 days ago

MarcoMeijer commented 1 week ago

Pull Request Title

https://github.com/orgs/smallcloudai/projects/5/views/1?pane=issue&itemId=80502312

Description

Improve performance by memoizing chat history, not updating full local storage if only the tip of the day changed, disabling redux checks, and synchronizing api calls to happen at the same time

Type of change

Optimization

How to Test

Click on new chat and see how long it takes to update.

Checklist

Linked Issues

https://github.com/orgs/smallcloudai/projects/5/views/1?pane=issue&itemId=80502312

Additional Notes

I am not sure if this actually solves the performance issue since I don't have this issue on my own pc.

MarcoMeijer commented 1 week ago

There seems to be a bug when scrolling inside a chat...