Parser Performance: Use Obsidian's cache instead of parsing the markdown manually
See original GitHub issueThis is just to track and discuss a great idea which was hidden in a user comment in the following post:
https://github.com/blacksmithgu/obsidian-dataview/issues/811#issuecomment-1024369351
In short:
- Obsidian already has a very detailed cache describing the markdown contents and structure of all documents.
- There are still some things that Dataview needs to parse manually (such as its inline
Key:: value
support), but most of the data that Dataview needs is already cached by Obsidian. - The Obsidian cache contains values such as all frontmatter variables, all chunks, lists, status of tasks, all section headers, all tags, etc.
- It may therefore be possible to use that cache instead, to massively speed up Dataview’s scanning. Especially on mobile, where it has been reported that Dataview runs very slowly https://github.com/blacksmithgu/obsidian-dataview/issues/602
- If Obsidian’s cache is enabled, there may have to be a Dataview toggle which lets the user know that “using the Obsidian cache disables
Key:: value
support”, since that data doesn’t exist in Obsidian’s own cache. But pretty much all other values Dataview wants exists in their pre-built cache.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
useParserCache - Plugin – GraphQL Envelop
This plugins adds simple LRU caching to your parse , to improve performance by caching the parsed result. This plugins improves performance of...
Read more >Perfect Notes or My Journey to Obsidian - mnaoumov.NET
I want to use folders to organize my notes and not to be limited. ... Obsidian is a NTS based on Markdown files...
Read more >DEVONthink + Obsidian - DEVONtechnologies Community
Hey! With the recent release of Obsidian 1.0, I have been trying to figure out if it is worth integrating (no intention of...
Read more >CM6 StreamParser - v6 - CodeMirror
I'm finding it fairly difficult to do given how difficult markdown is to parse in the first place, in that it can't really...
Read more >Change Log for Plesk Obsidian
Added the ability to manually clear nginx cache for websites with nginx caching enabled, both via the GUI and using the plesk bin...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Found this detailed guide for debugging Obsidian Mobile:
https://keathmilligan.net/obsidian-plugin-cross-platform-testing#mobile-testing
It’s a good question - I’m a chronic laptop user and so I don’t use Obsidian Mobile enough to be able to even guess at performance bottlenecks. I guess it’s time to actually install my own plugin on a phone and see if I can attach chrome debugging tools to it.