Skip to content

Typing in long md files is slow (~1s delay) #3162

@Lenzelot

Description

@Lenzelot

This issue respects the following points:

Describe the bug

First of all, sorry in advance if this issue is "wrong" here. I did a check and this affects the Markdown web editor and the editor in the Notes server app aswell. Do with it as you please.

Got a couple of very long notes files. 5000 lines or more... (please don't judge).

  • 5000 lines or more in one note markdown file
  • App is in Markdown code view
  • Typing anywhere in the file with the android keyboard

Typing in them has like a one second delay on each keystroke. I'm no expert but is there some very inefficient processing going on? Like, is it going through the entire file each time you change something? Because this delay is cumulative. 5 keystrokes = roughly 5 times the time. I have tested a couple of different markdown editors and while this very issue is certainly not unique, there are other apps that behave normally, which is no delay at all.

If you think this kind of delay is normal or acceptable, I don't know what to tell you. It's a plain text file and there are ways to deal with syntax highlighting efficiently. All that being said, I appreciate developers efforts here, all in all the app works great and gets the job done.

Expected behavior

No response

Notes Android version

33.0.0

Notes server version

33.0.x

Nextcloud Android version

33.0.1

Nextcloud version

33.0.x

Device

Pixel 8

Android Version

16

App Store

  • Google Play Store
  • F-Droid
  • Huawei App Gallery

Stacktrace

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions