mirror of
https://github.com/nestriness/cdc-file-transfer.git
synced 2026-01-30 14:35:37 +02:00
[cdc_rsync] Improve throughput for local copies (#74)
On Windows, fclose() seems to be very expensive for large files, where closing a 1 GB file takes up to 5 seconds. This CL calls fclose() in background threads. This tremendously improves local syncs, e.g. copying a 4.5 GB, 300 files data set takes only 7 seconds instead of 30 seconds. Also increases the buffer size for copying from 16K to 128K (better throughput for local copies), and adds a timestamp to debug and verbose console logs (useful when comparing client and server logs).
This commit is contained in:
@@ -115,7 +115,7 @@ class OutputTest(test_base.CdcRsyncTest):
|
||||
|
||||
# server-side output
|
||||
self._assert_regex(
|
||||
r'DEBUG server_socket\.cc\([0-9]+\): Receive\(\): EOF\(\) detected',
|
||||
r'DEBUG \d+\.\d{3} server_socket\.cc\([0-9]+\): Receive\(\): EOF\(\) detected',
|
||||
output)
|
||||
|
||||
# TODO: Add a check here, as currently the output is misleading
|
||||
@@ -139,7 +139,7 @@ class OutputTest(test_base.CdcRsyncTest):
|
||||
|
||||
# server-side output
|
||||
self._assert_regex(
|
||||
r'VERBOSE message_pump\.cc\([0-9]+\): ThreadDoReceivePacket\(\): Received packet of size',
|
||||
r'VERBOSE \d+\.\d{3} message_pump\.cc\([0-9]+\): ThreadDoReceivePacket\(\): Received packet of size',
|
||||
output)
|
||||
|
||||
def test_quiet(self):
|
||||
|
||||
Reference in New Issue
Block a user