[iOS] keyboard is slow to respond to input on large/complicated objects

What’s The Bug?

The default iOS keyboard is slow to respond to both tap-to-insert and swipe-to-insert text input on large objects (roughly 1 second per tap/swipe). I suspect that it is related to the number of inline-linked objects that are contained in the object. Other things contained in the objects are highlighted and callout formatting, a table of contents, and images.

How To Reproduce It

  1. Create an object
  2. Add roughly 10,000 words/62,000 characters which would include images, inline links, and various text formatting
  3. Type anywhere in the object

The Expected Behavior

Typing on the default iOS keyboard would be as quick to respond as it would be on a smaller document - immediate.

Additional Context

The object I noticed the issue on is 10,534 words/62,376 characters.

I copied the object into a word counter, which removed the table of contents, inline links, and images. Then I copied all of that and put it back into another different object. Typing was much faster, but still slightly slower than an object with less… stuff.

I’m assuming this is an edge case because of how complicated the object is. I attached the exported object in the Crash Logs or Debug Files section in case it helps.

Device

iPhone 13 Pro

OS

iOS 17.2.1

Anytype Version

0.27.1

Technical Information

Device: iPhone 13 Pro
OS version: 17.2.1
App version: 0.27.1
Build number: 3
Library version: v0.30.11
Account ID: A7NKJThv3PxQdy4p11emUyhvjEh7rxPCXq2iup2Kb4tWhW3n
Device ID: 12D3KooWEeMmWG2jrrWqWh1qwNfXemxjj6M471frSYMKaadGBNtj
Analytics ID: A9FwjZbSqB7esWk5h2y3inwoFK8GZBJuTKZFSN7XFVVPMThe

Crash Logs or Debug Files

Anytype.20240209.100233.43.zip (14.6 MB)

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

I have exactly the same issue.
But with me it happens on a page with a table object. Every time I begin to type with a cell of the table it slows down.
It happens on both iOS and ipadOS.

Technical information
Device: iPhone 13 mini
OS version: 17.6.1
App version: 0.32.0
Build number: 29
Library version: v0.35.0-rc11
Anytype ID: AAiAvC8Ch6EF8Lv7nBzJfF43eKgm44PUHHhrrBEZkPRjjM2G
Device ID: 12D3KooWKbwLHP84zjBVSg36Z4aoj4EvZx1VD4rZ9jke2PG4FNpb
Analytics ID: fe5eb5fe-7dca-4eb1-ad2e-42d66031b093