Weird speed issues

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
laz88
Posts: 2
Joined: Sun May 07, 2023 9:41 am

Weird speed issues

Post 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.
User avatar
AmigoJack
Posts: 532
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: Weird speed issues

Post 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?
laz88
Posts: 2
Joined: Sun May 07, 2023 9:41 am

Re: Weird speed issues

Post 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.
Last edited by AmigoJack on Mon May 08, 2023 12:45 pm, edited 1 time in total.
Reason: reducing full quote to relevant quote
User avatar
bbadmin
Site Admin
Posts: 878
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Weird speed issues

Post 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.
Post Reply