Page 1 of 1

Weird speed issues

Posted: Sun May 07, 2023 12:27 pm
by laz88
I have a text file I use quite a bit. It's in a dropbox folder if that matters.
It's about 2mb in size.

When I save it, the time it takes varies between about 4 and 10 seconds.
On the same machine, in the same folder a different text editor saves it instantaneously.
(The backup folder is on an SSD so should be quick.)

On an unrelated note, a simple search in the file takes 2 to 4 seconds to find a word at the end.
Not sure why the speed varies so much! (And no big background load.)
A different editor searches the same file instantaneously.

I'm using the latest version, but these issues have bothered me in past versions too.

Re: Weird speed issues

Posted: Mon May 08, 2023 7:27 am
by AmigoJack
laz88 wrote: Sun May 07, 2023 12:27 pma dropbox folder
So it's not really in the filesystem, but a resource on the internet (isn't that a whole drive to begin with, instead of only a folder?). File operations then rely on uploading and downloading data. The "different text editor" may recognize this and/or perform more optimized on to reduce file access, f.e. by reading/writing the whole file at once at the cost of using memory - have you checked in the Task Manager how both editors consume memory?

You said nothing about the file size - does this happen with any? Or just with tiny or big files?

Re: Weird speed issues

Posted: Mon May 08, 2023 11:44 am
by laz88
AmigoJack wrote: Mon May 08, 2023 7:27 amYou said nothing about the file size - does this happen with any? Or just with tiny or big files?
Actually I did say: it's about 2mb.

I just tried saving it with Windows' own notepad and it saved instantly, and I doubt notepad does anything tricky.

Re: Weird speed issues

Posted: Mon May 08, 2023 12:37 pm
by bbadmin
Which version of TextPad are you using? Please try with the latest.

It loads files into memory all at once whereas some other editors do it asynchronously, seeming to be finished while they continue to load them in the background. The difference may be noticeable on network file systems which are constrained by the speed of the connection.

As to the slow search speed, what are you searching for? A match at the end of a 2MB document is instantaneous on my laptop.