Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issue/delay when surrounding special characters (eg. italics) with parentheses, curly braces, brackets, stars, etc. on pages with many wiki-links in Live-Preview-Mode (v7.3.5+) #798

Open
mzietlow opened this issue Oct 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mzietlow
Copy link

mzietlow commented Oct 27, 2024

Is the bug present when using the default Obsidian theme?

No

Is the bug present when snippets and plugins are disabled?

Yes

Minimal theme version

7.7.18 (actually 7.3.5 and greater)

Describe the bug

I am observing performance issues when enclosing/surrounding special characters on pages that contain several wiki-links in Live-Preview Mode - the more wiki-links the slower.

To reproduce, create a new Obsidian Vault and install the latest version of the Minimal-Theme. Open the Welcome-Note and paste the following. Highlight the text Quickly surround me with with a couple of parentheses! and repeatedly press shift + ( in short succession is now noticeably slower compared to Obsidians default theme.

A commonality of affected special characters is, that they change how the enclosed text is displayed (e.g. italics, bold, math-mode, hidden, highlighted). Also, the issue only appears in Live-Preview-Mode.

The first version that seems to contain the bug was v7.3.5. I could not reproduce the delay in v7.3.4 and prior.

[[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] [[Welcome]] 


*Quick! Surround me with with a couple of parentheses in short succession!*
$Try\ me!$
%%I may be hidden - but cause the problem just as well%%
==Highlighting is also affected==

Debug info

SYSTEM INFO:
Obsidian version: v1.7.4
Installer version: v1.4.13
Operating system: Windows 10 Pro 10.0.22631
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: Minimal v7.7.18
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.

@mzietlow mzietlow added the bug Something isn't working label Oct 27, 2024
@mzietlow mzietlow changed the title Performance issue/delay when surrounding special characters (eg. italics) with parentheses, curly braces, brackets, stars, etc. on pages with many wiki-links (v7.3.5+) Performance issue/delay when surrounding special characters (eg. italics) with parentheses, curly braces, brackets, stars, etc. on pages with many wiki-links in Live-Preview-Mode (v7.3.5+) Oct 27, 2024
@Opisek
Copy link

Opisek commented Oct 28, 2024

I'm also experiencing huge lag since some recent update. Obsidian becomes literally unusable when enabling the Minimal theme.

This is particularly noticeable when using Vim mode:
Using default theme, you can hold h or j to go up or down notes with no delay at all.
As soon as Minimal is enabled and I try the same thing, pressing h or j a single time already takes about a second to react. When holding the key down, the frame rate of my Obsidian is easier measured in seconds per frame than frames per second. It can take some 10 seconds between frames being rendered with the cursor jumping hundreds of lines between them.

I am posting it under this issue, because it is somehow related to what's inside the note. Text only notes with no markdown, TeX, images, or the likes seems to works just fine. Also, it is a recent development, as I had been using this theme for over a year with no issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants