lollipopkit / flutter_server_box

ServerBox - server status & toolbox
GNU General Public License v3.0
4.78k stars 304 forks source link

大文件局域网下载速度很慢 #161

Open mostcute opened 1 year ago

mostcute commented 1 year ago

描述BUG

大文件下载速度很慢,大约500KB-800KB/s

预期在网速没问题的情况下 至少10M/s 吧

复现步骤

期望结果

实际结果

截图

设备

更多信息

Issues-translate-bot commented 1 year ago

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


Title: Local area network download speed for large files is very slow

DESCRIPTION BUG

The download speed of large files is very slow, about 500KB-800KB/s

It is expected to be at least 10M/s if the network speed is okay.

Steps to reproduce

Desired result

actual results

screenshot

equipment

More information

mostcute commented 1 year ago

img_v2_6c2d6b94-f176-48c9-93d2-94804bb3dahu

lollipopkit commented 1 year ago

可能是历史遗留原因造成的,麻烦下载测试

Issues-translate-bot commented 1 year ago

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


It may be caused by historical reasons, trouble download test

mostcute commented 1 year ago

你把1Mbuffer改成10M 我昨天已经下载试过了

会略快一点点,但还是离预期差很多

img_v2_2b0b7cfc-9c4d-43f3-b714-18094f09e8hu

mostcute commented 1 year ago

有什么想法吗

Issues-translate-bot commented 1 year ago

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


Any ideas?

mostcute commented 1 year ago

单核性能问题吗,这样手机端好像没法简单提升了

Issues-translate-bot commented 1 year ago

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


Is there a single-core performance problem? It seems that the mobile phone cannot be easily improved.

lollipopkit commented 1 year ago

估计是

解决方法

Issues-translate-bot commented 1 year ago

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


Guess so

  • Single-core performance bottleneck
  • dart implementation of SFTP has poor performance

Solution

mostcute commented 1 year ago

服务端要求软件实现加部署加新端口开放,不太现实,还是将就用吧

Issues-translate-bot commented 1 year ago

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


The server requires additional deployment of software and opening of new ports, which is not realistic, so just make do with it.

mostcute commented 1 year ago

还是实现的问题,我在电脑windows上进行测试,也只有1M/s的速度 image

wc7086 commented 1 year ago

估计是

  • 单核性能瓶颈
  • SFTP 的 dart 实现性能不佳

已经基本可以确定是 SFTP 的 dart 实现性能不佳了,要不要考虑用 golang 的 SFTP 实现?

Issues-translate-bot commented 1 year ago

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


Probably

  • Single-core performance bottleneck
  • dart implementation of SFTP has poor performance

It is almost certain that the dart implementation of SFTP has poor performance. Should we consider using golang’s SFTP implementation?

lollipopkit commented 1 year ago

估计是

  • 单核性能瓶颈
  • SFTP 的 dart 实现性能不佳

已经基本可以确定是 SFTP 的 dart 实现性能不佳了,要不要考虑用 golang 的 SFTP 实现?

可以试试,但没用过ffi,所以不太确定能否实现

Issues-translate-bot commented 1 year ago

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


Probably

  • Single-core performance bottleneck
  • dart implementation of SFTP has poor performance

It is almost certain that the dart implementation of SFTP has poor performance. Should we consider using golang’s SFTP implementation?

You can try it, but I have never used ffi, so I am not sure whether it can be achieved.