ChatGPT reduce react repaint duration

Reduces react repaint duration by limiting initial number of messages

Autor
SadSalmonTwT
Instalări zilnice
0
Total instalări
0
Rating-uri
0 0 0
Versiune
1.0.0
Creat
09-06-2025
Actualizat
09-06-2025
Size
4,29 KB
Licență
MIT
Se aplică pe

Script for ChatGPT.com that will* speed up old and long chats.

On conversation load, ChatGPT will fetch the entire chat history and render it.
That takes forever if you have more than a few dozen messages.
The same issue occurs when you send a new prompt to the conversation, which causes the history to once again rerender (but this time it is not refetched).

This script intercepts the initial request for chat history and trims the response.
The history is a tree graph.
The variable INIT_NUMBER_OF_MESSAGES, which is 10 by default, defines the number of messages on the current branch that will be preserved.
If these messages have children of their own that are hidden (that typically happens on model change or response regeneration), then those are preserved as well.

Do note that if you keep the same conversation going on without ever refreshing the page or changing conversation in the side menu, you will run into the same issue with everything slowing down, since this script does not alter the app state, but just the init data.

*or rather may.
It may not work at all.
If it doesn't, just turn it off, no harm should be done.

长期地址
遇到问题?请前往 GitHub 提 Issues。