Performance regression on Android since UI change

Once you’ve done the above, delete everything above this line.

Steps to reproduce

  1. Obtain a sandbox vault for Android.
  2. Create a lot of notes in that vault. (E.g. in Zsh, do `for ((i = 0; i < 2000; i++)); do echo hi > test-$i.md; done`.)
  3. Open Obsidian to the sandbox vault.
  4. Wait for indexing to complete.
  5. Swipe down to bring up the command palette.

Did you follow the troubleshooting guide? [Y/N]

Yes.

Expected result

The command palette opens smoothly.

Actual result

The command palette stutters heavily as it opens the first time.

Environment

SYSTEM INFO:
Operating system: android 16 (samsung SM-S911B)
Webview version: 144.0.7559.132
Obsidian version: 1.11.7 (287)
API version: v1.11.7
Login status: not logged in
Language: en
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


My phone is a Samsung S23, so not underpowered by any stretch.

Additional information

I feel reasonably certain this is related to vault size.

This might have something to do with indexing. I noticed that after deleting my 2k test notes, the next time I opened the command palette, it also stuttered. So it might not be about absolute vault size, but also about vault size changes?

1 Like

I’m experiencing this as well. It’s so bad that I ended up disabling all the animations with this CSS.

/* Only apply to mobile devices */
@media only screen and (max-width: 768px) {
  
  /* Disable all animations and transitions globally */
  body *,
  body *::before,
  body *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  /* Re-enable animations for sidebars and sidebar content */
  .workspace-split.mod-left-split,
  .workspace-split.mod-right-split,
  .workspace-split.mod-left-split *,
  .workspace-split.mod-right-split *,
  .sidebar-toggle-button,
  .mod-left-split .workspace-tabs,
  .mod-right-split .workspace-tabs,
  .workspace-leaf-content[data-type="file-explorer"],
  .workspace-leaf-content[data-type="file-explorer"] *,
  .workspace-leaf-content[data-type="search"],
  .workspace-leaf-content[data-type="search"] *,
  .workspace-leaf-content[data-type="starred"],
  .workspace-leaf-content[data-type="starred"] *,
  .workspace-leaf-content[data-type="tag"],
  .workspace-leaf-content[data-type="tag"] *,
  .workspace-leaf-content[data-type="backlink"],
  .workspace-leaf-content[data-type="backlink"] *,
  .workspace-leaf-content[data-type="outline"],
  .workspace-leaf-content[data-type="outline"] *,
  .nav-files-container,
  .nav-files-container *,
  .tree-item,
  .tree-item *,
  .nav-folder,
  .nav-folder *,
  .nav-file,
  .nav-file * {
    animation-duration: revert !important;
    animation-delay: revert !important;
    transition-duration: revert !important;
    transition-delay: revert !important;
  }
  
}

What does it mean the command palette stutters?

Can you post a screen recording?