1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

vfs: reduce memory usage by re-ordering commonly used structures

This commit is contained in:
Nick Craig-Wood
2022-07-28 18:14:04 +01:00
parent e749bc58f4
commit a07d376fb1
4 changed files with 13 additions and 13 deletions

View File

@@ -16,16 +16,16 @@ type WriteFileHandle struct {
baseHandle
mu sync.Mutex
cond sync.Cond // cond lock for out of sequence writes
closed bool // set if handle has been closed
remote string
pipeWriter *io.PipeWriter
o fs.Object
result chan error
file *File
writeCalled bool // set the first time Write() is called
offset int64
opened bool
flags int
closed bool // set if handle has been closed
writeCalled bool // set the first time Write() is called
opened bool
truncated bool
}