You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
scp is slow when 5.4.1 and 5.5.0, but OK when 5.4.0 #883
Activity
wangyugui-e16 commentedon Sep 18, 2025
default ini
; Sendfile DelayType NoDelay/PerChar/PerLine/PerSendSize
SendfileDelayType=NoDelay
; Sendfile Delay (ms)
SendfileDelayTick=0
; Sendfile size when PerSendSize
SendfileSize=4096
; Sendfile file reading method
SendfileSequential=off
still slow when SendfileSize=409600, SendfileSequential=on
nmaya commentedon Sep 19, 2025
@zmatsuo @hkanou 報告のように、5.4.0では早く5.4.1では遅いのが確認できました。
この間に、このような影響が出そう修正はあったでしょうか?
zmatsuo commentedon Sep 19, 2025
sendmem系が疑わしいかと思いましたが
scpはttxsshへファイル名を渡す作りになっているので scp.h
ttermproではないのではなように思います。
ttxssh.dllプラグイン内にも大きな変更がなかった気がします。
nmaya commentedon Sep 19, 2025
この修正から遅くなっています。 e2bbb24
zmatsuo commentedon Sep 19, 2025
scpの処理とメッセージの処理が関係あるんですね。
調べます。
SCPの転送が遅くなっていたので修正 #883
zmatsuo commentedon Sep 19, 2025
scp の処理とメッセージの処理は綿密な関係がありました。
ウィンドウメッセージを使って色々処理を行っていました。
ダイアログのGUI処理に加えて
転送処理をウィンドウメッセージを使って行っています。
分離したほうがよさそうです。(でもすぐに手を入れられそうにないです)
メッセージ処理側に手を入れました。
最後のウィンドウメッセージを処理した後
少し(20ms)の間、処理を全力で行うようにしました。
手もとでは同様な動作になりました。
試していただけないでしょうか。
https://github.com/TeraTermProject/teraterm/actions/runs/17864179853
nmaya commentedon Sep 19, 2025
修正ありがとうございます。
スピードが戻りました。
wangyugui-e16 commentedon Sep 19, 2025
https://github.com/TeraTermProject/teraterm/actions/runs/17864179853
works well here too.
and the performance of 'SendfileSize=40960' is not bigger than default 'SendfileSize=4096' becuase the cpu usage is already high.
Thanks a lot.
nmaya commentedon Sep 20, 2025
These are the remaining tasks.
変更履歴を追記 #883
fix typo #883
Merge pull request #884 from TeraTermProject/fix/#883_idle
SCPの転送が遅くなっていたので修正 #883
変更履歴を追記 #883
fix typo #883
Merge pull request #885 from TeraTermProject/mfc/#883
zmatsuo commentedon Sep 23, 2025
main, stable_5_5 にもマージしました。
クローズします。