Skip to content

ソケット周りの改善#319

Merged
sayurin merged 8 commits intomasterfrom
async-socket
Oct 3, 2021
Merged

ソケット周りの改善#319
sayurin merged 8 commits intomasterfrom
async-socket

Conversation

@sayurin
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

1 participant