Tracking down typing lag on mobile

What I’m trying to do

Trying to track down typing lag on Android… It’s so very barely noticeable, but it’s there. I disabled all the plugins that react to note changes/save (or at least the options in those plugin that control that). This is not a bug report (at least not yet?), I’m just trying to find what’s slowing things (which plugin, which script)… Any suggestions on things I could do? I have access to DevTools and can monitor mobile Obsidian through that, but I dunno what to do to track performance specifically.

Typing in a modal isn’t laggy (other than the quick switcher, but that’s for other reasons), only the editor.

Things I have tried

I tried the “Performance” tab of DevTools, did the “Record” thing, typed a bit, and then looked at it… But… I dunno how to really make sense of it.

Somewhat relevant forum posts

(Maybe? I’m not fully sure if this was caused by recent updates or any of the various other changes I did to scripts and plugins in my vault. Plus, my device is not old. I have ~11k files in my vault, though)
1 Like

In my case, the obsidian mobile typing experience felt laggy as I was using a bunch of PDF’s with a Text Extractor - an OCR Plugin, that regularly scanned the texts in PDF’s;

The theme that I was using is Primary which was unoptimized for the latest versions of Obsidian. ( last version of the plugin was released about 3 years ago.

One Advice from my experience is try finding the files – plugins, files ( images or PDFs ) that take up high amounts of storage and check them and uninstall any unnecessary of those.

Maintaining a faster vault is to optimize the vault as Obsidian is already optimized for markdown.

Previously, my vault ( with performance issues ) was around 1.4 Gigs ( around 70 notes ) now after cleaning the vault ( plugins, pdfs, and images ) its snappy with 168 notes.

@ptparkr
I ended up opening a bug report about this because even after disabling all plugins, themes, snippets, whatever… I still have lag.

My vault is currently 8,888 markdown files totalling 8.29 MB plus 2,485 attachments (mostly images and videos, but, also some PDFs and other miscellaneous files) totalling 12.9 GB.

1 Like

When I initially made this post, I was looking for more of a power user and/or programmer’s way of tracking down the lag. I’m no stranger to digging around in DevTools and messing with things and wanted something more actionable than “just disable plugins/themes/snippets,” but, after I took the L and just disabled everything and still had lag, I posted the bug report.

1 Like

Wow I didn’t expect that Obsidian on mobile would be able to manage file sizes around 10k items.

Edit mode needs some optimization:

  • reduced interaction with the vault during writing
  • the way how links and scanning processes interact with notes
  • internal processes could start after switching to another note or after a “save”

Can’t say much about, just my guesses.
Searching/scanning is slow, but writing should be snappy, always.

As a temporary workaround, you could start to design multiple vaults.

Some stats