-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Excessive CPU and Memory Usage During Rendering of Long Responses #272
Comments
useDebounceを使うと、クリックしてから100ms後に変更が反映されてしまうのでやりたいことと少し違いますね。 useDebounceを使ったバージョンをいったPRで建ててみますので、見てもらえないでしょうか。 |
今回のパフォーマンスチューニングの件も、遅延させるよりも、そもそも前提として適切にメモ化する方針の方がいいかもしれないですね また、React19から、ReactForgetCompilerがリリースされる予定なので、それまで待てるなら、19系へのバージョンアップによって解消される可能性が高いです See : https://react.dev/blog/2024/02/15/react-labs-what-we-have-been-working-on-february-2024 |
すいません、上記会社アカウントで返信しちゃいました 上記鑑み、対応方針どうしましょう |
Reactヨクワカライなので、どのようにコンポーネントを分割してメモ化すれば良いのかよく分からないです。 |
@Taikono-Himazin @statefb @wadabee ただ、内部の状態管理設計を変えないとReact19のCompilerの恩恵受けられないかもなので、必ずしもバージョンアップで対応完了となるかは確定ではない点、補記しておきます。 |
ありがとうございます! React19へのバージョンアップはメモ化を目的に行うものではないので、本件とは別件として検討させてください! |
すみません。これは皆様に伺いたいのですが、 |
@Taikono-Himazin |
おお! これはマージされる予定はあったりするのでしょうか? |
@Taikono-Himazin |
Describe the bug
When rendering long responses from the AI assistant, there is a significant increase in CPU and memory usage. This issue seems to be caused by the continuous re-rendering of the chat area as each character is streamed and appended to the response.
To Reproduce
Screenshots
Additional context
Potential solutions:
The text was updated successfully, but these errors were encountered: