PDFs, large files, and sync

I have two dovetailing problems that seem related.

First - I have some large PDF’s in my vault. I can see in the activity logs that sync is repeatedly looping and trying to sync these PDF files - it tries again and again. PDF sync is turned on, but some of these PDF’s are larger than the max file size for my Obsidian sync account (I only see repeated entries for the PDFs over 5mb). It APPEARS that sync is repeatedly attempting to sync these and failing.

Second - obsidian uses an obscene amount of CPU on my machine constantly (50% on a Mac). I profiled in developer tools and saw that the culprit seemed to be allowSyncFile - a breakpoint in this shows me that its being called in a loop on all my files, again and again.

It seems that something is causing sync to run again and again in a tight loop (my hypothesis is the large files failing to sync, but it could be something else?) - this is visiting every file, an expensive operation.

If I remove the large files, the CPU usage problem goes away - but obviously micromanaging the size of files in my vault for all eternity is not really a viable solution here.

Curious if anyone else can reproduce this problem. A fix would be nice, this is sadly breaking my ability to use Obsidian at all :confused:

—–

Mac M3 Pro / MacOS 26.3

Here’s the offending stack trace:
0.0 ms0.0 % 609.7 ms51.3 %
0.0 ms0.0 % 609.7 ms51.3 %
157.9 ms13.3 % 609.6 ms51.3 %
433.1 ms36.4 % 451.8 ms38.0 %
6.6 ms0.6 % 6.6 ms0.6 %
3.2 ms0.3 % 3.8 ms0.3 %
0.0 ms0.0 % 3.7 ms0.3 %
2.1 ms0.2 % 2.1 ms0.2 %
0.0 ms0.0 % 1.8 ms0.1 %
0.0 ms0.0 % 0.4 ms0.0 %
0.0 ms0.0 % 0.2 ms0.0 %
0.1 ms0.0 % 0.1 ms0.0 %
0.1 ms0.0 % 0.1 ms0.0 %
0.0 ms0.0 % 0.0 ms0.0 %

(stack trace didn’t paste correctly, but in any case it’s not very interesting - its a stack of anonymous functions that ends with allowSyncFile)