Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
2fd29ed7
Commit
2fd29ed7
authored
Oct 22, 2021
by
Harald Sitter
🏳️🌈
Browse files
SCM_SILENT typo--
parent
d6e40ca9
Pipeline
#90529
passed with stage
in 2 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
smb/transfer.cpp
View file @
2fd29ed7
...
...
@@ -19,12 +19,12 @@ off_t TransferSegment::segmentSizeForFileSize(const off_t fileSize_)
// read() internally splits our read requests into multiple server
// requests and then assembles the responses into our buffer.
// The larger the chunks we request the better the performance.
// At the same time we'll want a sembl
e
nce of progress reporting
// At the same time we'll want a sembl
a
nce of progress reporting
// and also not eat too much RAM. It's a balancing act :|
off_t
segmentSize
=
c_minSegmentSize
;
// The segment size is largely arbitrary and sacrifices better throughput for
// greater memory use.
// This only goes up to a maxi
u
mum because bigger transfer blobs directly
// This only goes up to a maximum because bigger transfer blobs directly
// translate to more RAM use. Mind that the effective RAM use will
// be (segmentSize * (segments + 1)). The +1 is because smbc internally will also
// allocate up to a full segment for one read() call.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment