Slow keystroke response when editing large objects on MacOS

What’s The Bug?

Noticeably slow response to keystrokes editing a large page with about 15,000 lines and 60,000 characters, only consisting of text, headings and todo items

Adding text inside a block seems to not be affected that much, but adding new blocks is very slow

How To Reproduce It

  1. Create a Page-type object with 15,000 lines and 60,000 characters, only consisting of text, headings and todo items
  2. Try to add new heading and new text

The Expected Behavior

Fast, smooth response

Device

MacBook Pro 14-inch, 2023 (Apple M2 Pro)

OS

Sonoma 14.2 (23C64)

Anytype Version

0.39.0

Technical Information

OS version: darwin arm64 14.2.0
App version: 0.39.0
Build number: build on 2024-03-05 15:37:42 +0000 UTC at #a7986fffadcc2031b1eb3372265db5dda05f4c6d
Library version: v0.32.1
Anytype Identity: AB2DFtWFELrqQyFQmWqzTeLWEqaATX3N4VdZetNutrMVr8Nt
Analytics ID: 875c5563-d2c5-49d1-ad40-8dbfd5162292
Device ID: 12D3KooWPNM5GEYWZiok6BUcQbWFZnWqUn1CW4AYuW3F7hSYmfqF

This report has been added to our issue tracker and received by the Development Team.

@ai456 Is it possible to get this document as an example for me to profile it?

Ah sorry, I won’t be able to share it

generated a doc with similar structure that is also slow to process
Anytype.20240412.122356.67.zip (4.8 KB)

Using the object @ai456 provided, I would say it is not just keystroking that is slow. The whole Anytype is slow, from resizing windows, opening/closing widget pane, to bringing up the search pane.

So maybe this is about general performance.

Similar report below on iOS.

Thanks

Hello :wave: Was wondering if there are any updates on this? Especially after exporting some longer notes from other places make the app almost unusable

Hello, I did several optimisations and this document became faster, but not dramatically faster, so I will optimise it further.