question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parser Performance: Use Obsidian's cache instead of parsing the markdown manually

See original GitHub issue

This 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:open
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Bananamancommented, Jun 28, 2022

Found this detailed guide for debugging Obsidian Mobile:

https://keathmilligan.net/obsidian-plugin-cross-platform-testing#mobile-testing

1reaction
blacksmithgucommented, Jun 28, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found