For those who don't want to use another editor, I have no problem with short notes. When they get longer, I name the - part 1, then start a new note, part 2 etc. Eventually, when I get to the main computer, I use the combine notes plugin to merge them. It seems a fairly small hassle and no worse than copy an paste from another editor.
So have you observed this lag on your device? Can you confirm at what note size does it appear approximately? To see the size you can sync the note to desktop, open it in desktop app and go to Note - Statistics
I can help a little, but not much. When I noticed the problem and was bugged by it and bothered and thinking of switching to another editor, instead I got into the habit of simply not taking long notes. After awhile I just start another note. But, I can give you the stats on 2 notes I've taken yesterday and today. This shows when I break which is before the problem appears. So, notes of this size I do not have a problem with.
Note 1 - 4295 characters, 685 words 38 lines
Note 2 - 3548 characters, 566 words 25 lines
Other possible factors:
- I link with Dropbox frequently. So, looking those notes were probably synced 3 or maybe even 4 times each during the writing. When I get a pause, I switch from what I'm reading to my notes and sync them.
- I noticed the problems before just getting to the bottom of the note from the top. Scrolling down to continue taking notes was an issue.
- I'm using Android 10 on a middle of the road Samsung tablet.
Thank you! This should help me in reproducing the problem.
UPD
It didn't - still can't see any lag even with a slightly longer note.
For me, on a fresh start of the app it gets slower with
(lines words chars)
813 4324 27501
this Note works fine now:
111 493 3165
but sometimes it'll be already slow (and even crash, that is, the app just closes) on smaller notes. That's mostly if the app ran for a while already.. I'll keep watching out if there is more information on how to reproduce
I'm running out of ideas here but do you use encryption? Do you have lots of attachments?
Would you be interested in testing a custom APK with a potential fix?
No encryption, no attachments on those notes
Yeah I'll try a custom APK!
Hi @exic
The APK is here: https://github.com/roman-r-m/joplin/releases/download/input-lag-test/app-release.apk
Unfortunately, you'll have to uninstall Joplin fist before installing from the APK. This is because each package is signed by a private key; I obviously don't have Laurent's key so signed with mine. But Android won't let you install the same app signed with a different key. Hope this is not too much trouble.
If you only try on a single note (without syncing all your library) and do not see the lag, it would be great if you could also check when all your notes are synced. I want to make sure the lag isn't caused by some background processing which may depend on the total number of items in the profile.
Btw, this version is not fully functional -- attaching files/images isn't working but I believe this is not where the lag was occurring anyway.
Thanks for volunteering. And just in case - make a backup first.
Hi, thanks. So far, it has been better with this version. I'll keep using this and report back if something changes, ok?
Sure, thanks a lot. Did I understand you correctly that there's still lag, it just got better?
So, @exic what do you think, is there still significant lag when editing?
Hey, yeah it's better but I had severe lags once in the last week (looks like in the attachment, keyboard really weird), which is better but obviously not fixed completely..
Hmm, is that a new empty note? This is bizarre, I think it might be something completely different then, maybe your the keyboard as you say.
A little more information which may or may not help. Normally, I'm taking notes on research. The notes have lots of quotes blocks and some figures and I sync to Dropbox frequently. Last night I was just writing. All text, all from the keyboard. No attachments, no encryption and I did not sync, I just wrote. It became pretty horrible and essentially unusable so I had to quit and start a new note. I quit the note and it had:
22 lines, 529 words, and 2771 characters.
This is less than other notes that I could still type with. The two variables that are apparent to me are that I didn't have anything except my own typing and I did not stop and sync. When I paste in a block quote, it is easy to do a sync before going back to read more. When I'm just typing, I don't want to pause.
I should have checked what it would be like if I synced and continued, but it was too late to deal with.
@roman_r_m it was a note started on the first day of the month with about 416 lines, 2081 words, 13437 characters, I just put some newlines to hide my personal notes
@roman_r_m, I also checked the change you have made in this commit - the issue seems to be resolved in my case. I was testing on Android Emulator, where at first I could reproduce the lag with the code from current dev branch, and then after making same changes as you did (and restarting emulator - that was necessary step) the lag was gone.
The note I was testing on was ~40k words long, with about 550 lines - same as one that was problematic for Joplin on my private phone.
Thanks for checking. I was never able to see the lag with emulator. Sure, with a huge note (literally a whole book) I could see it but that was an extreme example, and I'd expect any text editing app to lag in this case (Markor certainly did).
I need to find time to get back to this and make a proper fix (atm some things, like attaching files, are not working in my version)
In case of Bengali the lag starts around 85 to 100 words. Sometimes, If I stop writing and come back again it seems to be fast again but it get slower really quick, only after 10-20 words. And all of these without even any formatting, just plain text. So, I'm guessing the issue is very fundamental. Can it be that the input register is too real-time? Making it more lazy might help in that case.
@roman_r_m I tried the beta editor. No lag by far, even with notes 3x larger than the previous ones where the lag was unbearable. I wonder if it is the case for everyone.
I had the problem on Android 10 with a OnePlus phone. Switching to a new device with Android 11 had no positive impact. The beta-editor, however, solved the slow editing problem for me as well.