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

ソケット周りの改善 #319

Merged
merged 8 commits into from Oct 3, 2021
Merged

ソケット周りの改善 #319

merged 8 commits into from Oct 3, 2021

Conversation

sayurin
Copy link
Member

@sayurin sayurin commented Oct 3, 2021

  • 不要なラッパーを削減し、処理をsocket.cppに集約する。
  • 非同期処理を導入し、応答速度を改善する。
  • TransPacketBasestd::forward_listからconncurrent_queueに移行し、ロックを排除する。
  • 1ファイル毎に挟まれている200ms待ちを排除する。

@sayurin sayurin self-assigned this Oct 3, 2021
@sayurin
Copy link
Member Author

sayurin commented Oct 3, 2021

#12 を一部実現している。

@sayurin sayurin merged commit 37cd213 into master Oct 3, 2021
@sayurin sayurin deleted the async-socket branch October 3, 2021 11:53
@sayurin sayurin added this to the v5.4 milestone Oct 10, 2021
@sayurin
Copy link
Member Author

sayurin commented Oct 10, 2021

ダウンロード時間について計測しました。

version time
2.00 52:00
5.3 11:26
master 4:47

測定条件

  • 1ファイル1KB
  • 10,000 ファイル
  • PPPoE回線
  • 4並列

ファイルサイズが小さくなると更に速度改善されます。
IPoEなどではセッション数制限により接続エラーが発生する場合があります。

hwtnb pushed a commit to HaijinW/ffftp that referenced this pull request Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant