Very slow opening of txt files from explorer - Windows 11

General questions about using TextPad

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

Post Reply
Jnhel74
Posts: 8
Joined: Fri Oct 11, 2024 8:42 am

Very slow opening of txt files from explorer - Windows 11

Post by Jnhel74 »

After updating to Windows 11, opening .txt-files from Windows Explroer is extremely slow.
I mean a situation when Texpad is not running and I double click on a text-file in Explorer.
I just clocked it and it took full 34 seconds. Notepad, on the other hand, opens these instantly.

Also:
I Updated to Texpad 9.52
Updated graphics driver.
Windows is updated.
User avatar
AmigoJack
Posts: 536
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: Very slow opening of txt files from explorer - Windows 11

Post by AmigoJack »

Jnhel74 wrote: Fri Oct 11, 2024 9:17 amI double click on a text-file in Explorer.
...
Notepad, on the other hand, opens these instantly.
I suppose through "right click > open with...", which is not a double click. If yes: does TextPad still need that long when also using "right click > open with..."?
User avatar
bbadmin
Site Admin
Posts: 882
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Very slow opening of txt files from explorer - Windows 11

Post by bbadmin »

Notepad starts up quicker than TextPad because:

1. It uses an edit control which is already loaded into memory in other contexts.
2. It has a much smaller memory footprint because it has much less functionality.
3. It doesn't have to load its customised state.
4. It only opens one window.

Having said that, on my PC running Windows 11 23H2 with the latest updates, TextPad only takes two or three seconds to be ready for use.

What happens if TextPad is already running when you double click a file in Explorer? Is it opened in the same instance, and how long does it take?
Jnhel74
Posts: 8
Joined: Fri Oct 11, 2024 8:42 am

Re: Very slow opening of txt files from explorer - Windows 11

Post by Jnhel74 »

AmigoJack wrote: Fri Oct 11, 2024 1:16 pm
Jnhel74 wrote: Fri Oct 11, 2024 9:17 amI double click on a text-file in Explorer.
...
Notepad, on the other hand, opens these instantly.
I suppose through "right click > open with...", which is not a double click. If yes: does TextPad still need that long when also using "right click > open with..."?
Double-click indeed. My txt-files are associated with Textpad.
Right click → Open with... same result
Jnhel74
Posts: 8
Joined: Fri Oct 11, 2024 8:42 am

Re: Very slow opening of txt files from explorer - Windows 11

Post by Jnhel74 »

bbadmin wrote: Fri Oct 11, 2024 3:38 pm Notepad starts up quicker than TextPad because:

1. It uses an edit control which is already loaded into memory in other contexts.
2. It has a much smaller memory footprint because it has much less functionality.
3. It doesn't have to load its customised state.
4. It only opens one window.

Having said that, on my PC running Windows 11 23H2 with the latest updates, TextPad only takes two or three seconds to be ready for use.
Thanks for your reply. Yeah, I knew Notepad opens a bit faster in any case, thanks for the details of why.
What happens if TextPad is already running when you double click a file in Explorer? Is it opened in the same instance, and how long does it take?
It opens the file instantly, in the same instance. Should have mentioned this in my first post.

I made some more testing. Delay happens only after a reboot. If Texpad has been opend earlier during active Windows session it opens normally, 1-2 seconds. But after a reboot it takes +30 seconds.
User avatar
AmigoJack
Posts: 536
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: Very slow opening of txt files from explorer - Windows 11

Post by AmigoJack »

And you surely don't have any additional "security" software installed which guards over programs/processes and maybe even gives windows of such programs a red frame? Such a software could also first "scan" a program to be started, resulting in such a long processing time (which you only experience as delay).
Jnhel74
Posts: 8
Joined: Fri Oct 11, 2024 8:42 am

Re: Very slow opening of txt files from explorer - Windows 11

Post by Jnhel74 »

AmigoJack wrote: Fri Oct 11, 2024 5:43 pm And you surely don't have any additional "security" software installed which guards over programs/processes and maybe even gives windows of such programs a red frame? Such a software could also first "scan" a program to be started, resulting in such a long processing time (which you only experience as delay).
I have Avast. It did not interfere like this in Windows 10. You think it behaves differently in Windows 11? I'll test soon.
Jnhel74
Posts: 8
Joined: Fri Oct 11, 2024 8:42 am

Re: Very slow opening of txt files from explorer - Windows 11

Post by Jnhel74 »

I tested disabling Avast right after reboot. Same delay.

I somewhat suspected it could be anti-virus related because Textpad opens in normal time if it is started from a Shortcut or Start menu. There is delay only when I open a text-file from File explorer.

I wrote in earlier reply it went back to normal behauviour after Textpad had been opened once.
This time it had to be opened and closed twice, after which opening time is normal.
.."security" software installed which guards over programs/processes and maybe even gives windows of such programs a red frame?
Textpad indeed had a red border. I wrote another post of this. Fixed it by changing Textpad theme.
User avatar
bbadmin
Site Admin
Posts: 882
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Very slow opening of txt files from explorer - Windows 11

Post by bbadmin »

Windows is very busy running background processes after a reboot, so that could be a reason for slow file opening. What's it like if you wait until Windows reaches a quiescent state before double clicking a file? You can check for that by starting Task Manager with Ctrl+Shift+Esc and watching for CPU and memory usage to reach a steady state. On my PC, TextPad then opens a file in less than 3 seconds.
Post Reply