Skip to content
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

[Request] 感觉目前项目 的性能有很大问题,几乎所有交互都存在卡顿,特别是手机上,都会都有0.几秒 的延迟 。 #2781

Closed
Jayden666z opened this issue Jun 4, 2024 · 29 comments · Fixed by #2815
Labels
🌠 Feature Request New feature or request | 特性与建议

Comments

@Jayden666z
Copy link

🥰 需求描述

感觉目前项目 的性能有很大问题,几乎所有交互都存在卡顿,特别是手机上,都会都有0.几秒 的延迟 。

🧐 解决方案

希望可以流畅交互

📝 补充信息

No response

@Jayden666z Jayden666z added the 🌠 Feature Request New feature or request | 特性与建议 label Jun 4, 2024
@lobehubbot
Copy link
Member

👀 @Jayden666z

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

I feel that there is a big problem with the performance of the current project. Almost all interactions are stuck, especially on mobile phones, where there is a delay of a few seconds.

🧐 Solution

Hope the interaction can be smooth

📝 Supplementary information

No response

@Jayden666z Jayden666z changed the title [Request] [Request] 感觉目前项目 的性能有很大问题,几乎所有交互都存在卡顿,特别是手机上,都会都有0.几秒 的延迟 。 Jun 4, 2024
@arvinxx
Copy link
Contributor

arvinxx commented Jun 4, 2024

请给出下具体卡顿的地方? 录个屏,我具体看下

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Please give me the specific place where it gets stuck? Record the screen and I'll take a closer look

@Jayden666z
Copy link
Author

因为每次点击 都要与服务器交互 这个是 切换聊天列表的时候延迟,特别依赖网络情况,网络卡的时候要 好久,我觉得这个不合理呀。
image

@arvinxx
Copy link
Contributor

arvinxx commented Jun 4, 2024

奇怪…为何切换助手会发请求… 这个不符合预期,我研究下为啥

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Strange...Why does the switching assistant send a request...This is not as expected. I will research why.

@finexss
Copy link

finexss commented Jun 5, 2024

而且浏览器打开一次首页,需要加载10M以上的数据,耗费时间太长,有多个人一起用的话,服务器就太难了。
希望能精简一下。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Moreover, once the browser opens the homepage, it needs to load more than 10M of data, which takes too long. If multiple people use it together, the server will be too difficult.
Hope it can be simplified.

@xingpingcn
Copy link

还有就是每次点击右上角设置都要卡一下

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Also, every time I click on the settings in the upper right corner, it gets stuck.

@Sun-drenched
Copy link

请给出下具体卡顿的地方? 录个屏,我具体看下

我之前遇到过一个情况,就是在开启客户端请求模式、流式响应时,如果GPT返回的回答比较长(可能需要15-20s才能显示完毕),在回答输出期间,打开设置和设置中的操作过程是相当卡顿甚至于无响应的。一旦答案输出完毕就恢复正常。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Please give me the specific place where it gets stuck? Record the screen and I'll take a closer look

I have encountered a situation before, that is, when the client request mode and streaming response are turned on, if the answer returned by GPT is relatively long (it may take 15-20s to display), during the answer output, open Settings and Settings The operation process is quite laggy or even unresponsive. Once the answer is output it returns to normal.

@arvinxx
Copy link
Contributor

arvinxx commented Jun 8, 2024

而且浏览器打开一次首页,需要加载10M以上的数据,耗费时间太长,有多个人一起用的话,服务器就太难了。

这个不影响你使用的吧,现在首屏打开应该没什么瓶颈了才对。你想要所有页面响应快,肯定就要做预加载,浏览器会在空闲时候拉取静态资源。至于服务器负担不了,不应该是去加钱升配置么?我自己的机器跑着没啥问题。

还有就是每次点击右上角设置都要卡一下

能不能录个屏看下具体怎么卡,我自己点还挺很丝滑的啊?

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Moreover, once the browser opens the homepage, it needs to load more than 10M of data, which takes too long. If multiple people use it together, the server will be too difficult.

This does not affect your use, right? There should be no bottleneck when opening the first screen now. If you want all pages to respond quickly, you must do preloading. The browser will pull static resources when it is idle. As for the server that can't be afforded, shouldn't we have to pay more to upgrade the configuration? My own machine runs without any problems.

Also, every time I click on the settings in the upper right corner, it gets stuck.

Can you record the screen to see exactly how it freezes? I think it's pretty smooth when I click on it myself.

@arvinxx
Copy link
Contributor

arvinxx commented Jun 8, 2024

我之前遇到过一个情况,就是在开启客户端请求模式、流式响应时,如果GPT返回的回答比较长(可能需要15-20s才能显示完毕),在回答输出期间,打开设置和设置中的操作过程是相当卡顿甚至于无响应的。一旦答案输出完毕就恢复正常。

最新版还有这个问题吗?我理解可能和这个是同一个问题: #2724 (comment)

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I have encountered a situation before, that is, when the client request mode and streaming response are turned on, if the answer returned by GPT is relatively long (it may take 15-20s to display), during the answer output, open Settings and Settings The operation process is quite laggy or even unresponsive. Once the answer is output it returns to normal.

Does the latest version still have this problem? I understand it may be the same problem as this: #2724 (comment)

@lobehubbot
Copy link
Member

@Jayden666z

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@arvinxx
Copy link
Contributor

arvinxx commented Jun 8, 2024

@Jayden666z 可以试下,应该修好了

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@Jayden666z You can try it, it should be fixed.

@Sun-drenched
Copy link

我之前遇到过一个情况,就是在开启客户端请求模式、流式响应时,如果GPT返回的回答比较长(可能需要15-20s才能显示完毕),在回答输出期间,打开设置和设置中的操作过程是相当卡顿甚至于无响应的。一旦答案输出完毕就恢复正常。

最新版还有这个问题吗?我理解可能和这个是同一个问题: #2724 (comment)

有,并不是一个问题。
而且修正一下表述,没有开启客户端请求模式也会出现这个问题。在视频中,我复现了这个问题。在GPT输出回答之前,打开设置动作比较流畅(此Lobechat部署在国内服务器,不存在网络问题),一旦GPT开始输出回答,打开设置等界面上的操作异常卡顿,可以看到我连续点击设置很多次,直到回答输出完才弹出设置界面。
https://github.com/lobehub/lobe-chat/assets/11055122/4e145ff2-285a-443b-bf30-183f89622ffa

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I have encountered a situation before, that is, when turning on client request mode and streaming response, if the answer returned by GPT is relatively long (it may take 15-20s to display), during the answer output period, open Settings and Settings The operation process is quite laggy or even unresponsive. Once the answer is output it returns to normal.

Does the latest version still have this problem? I understand it may be the same issue as this: #2724 (comment)

Yes, it's not a problem.
And to correct the statement, this problem will also occur if the client request mode is not turned on. In the video, I reproduce the problem. Before GPT outputs the answer, the action of opening the settings is relatively smooth (this Lobechat is deployed on a domestic server, and there are no network problems). Once GPT starts outputting the answers, the operation on the interface such as opening the settings is abnormally stuck. You can see that I clicked a lot of settings continuously. times, the setting interface will not pop up until the answer is output.
https://github.com/lobehub/lobe-chat/assets/11055122/4e145ff2-285a-443b-bf30-183f89622ffa

@arvinxx
Copy link
Contributor

arvinxx commented Jun 9, 2024

在GPT输出回答之前,打开设置动作比较流畅(此Lobechat部署在国内服务器,不存在网络问题),一旦GPT开始输出回答,打开设置等界面上的操作异常卡顿,可以看到我连续点击设置很多次,直到回答输出完才弹出设置界面。
https://github.com/lobehub/lobe-chat/assets/11055122/4e145ff2-285a-443b-bf30-183f89622ffa

@canisminor1990 看下这个问题,会不会是拦截路由的影响?

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Before GPT outputs answers, the action of opening settings is relatively smooth (this Lobechat is deployed on a domestic server, and there are no network problems). Once GPT starts outputting answers, the operation on the interface such as opening settings is abnormally stuck. You can see that I click settings continuously. Many times, the setting interface does not pop up until the answer is output.
https://github.com/lobehub/lobe-chat/assets/11055122/4e145ff2-285a-443b-bf30-183f89622ffa

@canisminor1990 Let’s take a look at this problem. Could it be the impact of intercepting routing?

@arvinxx
Copy link
Contributor

arvinxx commented Jun 9, 2024

@Sun-drenched 可以单独开个 issue 跟进哈,不在这个 issue 下讨论了。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@Sun-drenched You can open a separate issue to follow up. I won’t discuss it in this issue.

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This problem will also occur if the client request mode is not enabled. In the video, I reproduce the problem. Before GPT outputs the answer, the action of opening the settings is relatively smooth (this Lobechat is deployed on a domestic server, and there are no network problems). Once GPT starts outputting the answers, the operation on the interface such as opening the settings is abnormally stuck. You can see that I clicked a lot of settings continuously. times, the setting interface will not pop up until the answer is output.

#2823

@Sun-drenched
Copy link

@Sun-drenched 可以单独开个 issue 跟进哈,不在这个 issue 下讨论了。

#2823

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@Sun-drenched You can open a separate issue to follow up. We will not discuss it in this issue.

#2823

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants