Skip to content

Performance degradation from 2.14.1 to 2.15.2 #2716

Description

@pgorod

⚠️ This issue respects the following points: ⚠️

  • This is a bug. Not a question or feature request.
  • The topic is not already reported at Issues. (I've searched it).
  • Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • The bug is still present in the latest development version (git master). (Please download and try the test version of Markor, named Marder. Don't worry; Markor and Marder appear as completely separate applications. You can install both side-by-side, and Markor settings are not touched. In case the issue is resolved there, you don't need to create a bug report. The change will be part of the next Markor update.)

Description

Using a big markdown file, I notice a significant performance degradation when I upgraded Markor from 2.14.1 (normal release) to 2.15.2 (using Marder, latest debug version).

I use a big file everyday, but I can't post it here, so I created a new sample one from a free eBook, which I tried to give the same characteristics as my file (size, number of lines, of headings, kind of markdown used).

My file shows an even greater performance penalty, but I don't know exactly why and the sample seems enough to reproduce the problem:

Chesterton.md

What sort of delay am I seeing?

I am using a OnePlus Nord CE 5G with 8GB of RAM which generally feels fast and snappy.

Syntax highlighting is turned on in all tests.
Turning it off doesn't seem to make a very noticeable difference.

  • opening the file takes around 1.5s before upgrade, 3s or 4s after
  • opening/closing the keyboard goes from almost immediate to noticeable (1 or 1.5s)
  • navigating to a chapter by tapping on the top bar and selecting: no apparent performance hit

Steps to reproduce

  1. Open the file
  2. Open keyboard or close it
  3. Contrast delays in both versions

Information

Android version: 11
Device: OnePlus Nord CE 5G / 8G RAM / SnapDragon 750G
App Version: 2.14.1 / 2.15.2

Source

Github apk

Format / File type

Markdown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions