"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
refactor: use strings.FieldsFuncSeq to reduce memory allocations
juejinyuxitu7e30665102cb
diff --git a/fs/bwtimetable.go b/fs/bwtimetable.goindex 9a2173862..f17e3ee30 100644--- a/fs/bwtimetable.go+++ b/fs/bwtimetable.go@@ -151,7 +151,7 @@ func (x *BwTimetable) Set(s string) error {}// Split the timetable string by both spaces and semicolons- for _, tok := range strings.FieldsFunc(s, func(r rune) bool {+ for tok := range strings.FieldsFuncSeq(s, func(r rune) bool {return r == ' ' || r == ';'}) {tv := strings.Split(tok, ",")