Skip to content

Improve the speed of preview (caching, threading?) #69

@baudren

Description

@baudren

Currently, the markdown preview is always recomputed, even without changes to the source markdown file. There would be several ways of improving this very poor design:

  • store a hash of the source code files if a preview has been generated. When reasking to preview, check the hash, and skip to display if nothing changed
  • make an incremental modification. When adding a new note to an existing notebook, it could be beneficial to compute the markdown preview only for the tiny bit we are interested in (plus, this could be used in previewing the note before posting it).
  • thread the preview away. While launching the application, and finding notebooks in the home folder, always assume that the user will want to preview it, and start in a separate thread (if available) the previewing. This way, the UI is not blocked, and the response will be faster.

We have to think of a way to store these hashes of already previewed files:

  • in the same way we store the preferences of the code? (so registry in Windows)
  • in .noteorganiser?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions