-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
I'm using Dockerized AnythingLLM. When I mouse over things like the edit/copy buttons, send new messages, or save edits, AnythingLLM freezes and slows down for something like half a minute. It doesn't seem to use the CPU/GPU much when it lags, can anything be done about that? Why does this happen? This happens specifically in very long chats, but I need that context.
I tried to ask Claude about this...
It told me the lag is likely related to:
React's event handling system dealing with many interactive elements
Browser rendering updates for hover states and UI changes
Large DOM tree traversal in long conversations
Virtual scrolling/windowing should be implemented:
Only render messages currently in view
Reduce active DOM elements
Libraries like react-window or react-virtualized can help
Check if there are any React development modes enabled:
Ensure you're using production builds
Development builds have extra checks that can slow things down
Profile the application:
Use React Developer Tools
Check Chrome/Edge Performance panel
Look for long tasks and render bottlenecks