Sync extremly slow

1.0.170 on macOS 10.14.6
1.0.308 on Android 10

Sync is extremly slow. Or rather the init part of it (at least that is what I think). I’m not sure, but I think it has to do with the client id and sync version code.

When I click on the Sync button, it takes about 10 seconds to complete a sync (with just one character change in one note). In 1.0.169 this took less than 2 seconds.
Even on mobile it takes about 7 seconds, which took less than a second with the previous version.

These are the entries on mobile when I click on sync (no changes in any files):

10-14T21:47:51,30,"""Settings have been saved.""
10-14T21:47:50,30,"""Saving settings...""
10-14T21:47:50,30,"""Total notes: 288""
10-14T21:47:50,30,"""Total resources: 99""
10-14T21:47:50,30,"""Total folders: 31""
10-14T21:47:50,30,"""fetchingTotal: -""
10-14T21:47:50,30,"""Operations completed: ""
10-14T21:47:48,30,"""TaskQueue.stop: syncDownload: waiting for tasks to complete: 0""
10-14T21:47:48,30,"""TaskQueue.stop: syncDownload: Done, waited for 0""
10-14T21:47:43,30,"""Starting scheduled sync""
10-14T21:47:43,30,"""Scheduling sync operation...""
10-14T21:47:43,30,"""Preparing scheduled sync""

Yes I’ve noticed it’s making more requests than I’d like. I’ll see if it can be optimised.

What is this code for anyway. The only explanation in the release notes was: Added concept of sync version and client ID to allow upgrading sync targets

But what does that mean exactly? Either way, a perf degradation of 500-700% is really brutal.

I think this has also something to do with the slow speed on desktop: