Start Drive sync while 'preparing'
Apologies, not sure if "new feature" or 'change to existing feature'.
Setting up Proton Drive on a new machine or after a re-format - it spends HOURS "Setting up... (x items prepared for sync)" before it actually starts syncing.
Why can't it start syncing what is already 'prepared' while figuring out the rest? Would be a HUGE QoL improvement for users and save a TON of time getting people up and running.
-
Aravinth
commented
"Setting up..." took 11 h 28 m for a 253k-item tree - because it is a strictly sequential walk over every folder, one request at a time.
Context: I dual-boot. Ubuntu is my daily OS and Proton Drive has no official Linux client, so this Windows install exists only to run the sync engine. Long gaps between syncs are structural for me.
Measured (Windows 11, Drive 3.0.6, 253,262 items / 19,432 folders, first run after ~79 days):
23:36:36 "Event log entries were skipped" for 6 local scopes + Volume_1
11:03:44 Finished Remote state-based update detection in 11:27:07.4406307
11:04:58 Finished Local state-based update detection in 00:01:13.2157479Setup total: 11 h 28 m, at 0.5-6% of one CPU core, with no file data moving. All of that to discover 271 new items (241 files, 30 folders).
Why: the stored event-log anchor was no longer valid, so the client marked every root DirtyDescendants and walked all 19,432 directories instead of a delta. That walk is strictly sequential - StateBasedUpdateDetection.ExecuteAsync does `await foreach (var node in DirtyNodes(syncRootNodeId)) await DetectUpdates(node);` - with one API request per directory (the node-attribute fetch is skipped unless the node is a dirty placeholder) and no concurrency: 41,227 s / 19,432 directories = 2.12 s per directory.
For comparison, the local adapter runs the same traversal, with the same sync engine and the same SQLite transactions, over 19,447 directories in 73 s (266 dirs/s). The cost is the request pattern, not the number of nodes.
One more detail: the counter increments per directory, not per item (ChildrenEnumeration returns no value for non-directories, and the statistic only increments on a non-null result), and it shows no total and no ETA. The walk it was counting covered 19,432 folders out of 253,262 items.
Asks, in order of payoff:
1. Bounded concurrency over dirty directories (8-16): 11.5 h becomes tens of minutes.
2. Pipeline or batch the children listings instead of one blocking request per directory.
3. Show a total and an ETA, and count items rather than directories.
4. Allow syncing already-prepared items while the walk continues (the original ask here).
5. A "modified-since" fallback instead of an all-or-nothing full walk on an invalid anchor.Data point: support previously suggested signing out, uninstalling and reinstalling. That deletes %LocalAppData%\Proton\Proton Drive - all three SQLite trees - so the index is rebuilt from zero and the walk repeats. Not viable for large accounts.