freeze long time when delete the content from a huge file

Solved bugs are moved into this topic...
Post Reply
hycmos
Posts: 86
Joined: 06.11.2019 02:17

freeze long time when delete the content from a huge file

Post by hycmos »

When I delete all content from a huge file, Cudatext will freeze about 30 seconds.
I tested two version 1.211.0.0, 1.201. Both showed the same phenomenon.

here is the step how to triger the phenomenon:
1) open one huge file: 16.8M, 603469 lines
2) press keys:Ctrl+A
3) press key:Delete
then freeze about 30 seconds.

Anyone has the same issue?
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: freeze long time when delete the content from a huge file

Post by main Alexey »

I reproduced it. I took file torrent.cpp (11k lines), did Ctrl+A 'select all' and called 'duplicate lines' many times to get 600k lines.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: freeze long time when delete the content from a huge file

Post by main Alexey »

It will be fixed in the next update.

- fix: many seconds freezing when 'select all' + 'delete' runs in ~600K lines file (thanks @hycmos)
hycmos
Posts: 86
Joined: 06.11.2019 02:17

Re: freeze long time when delete the content from a huge file

Post by hycmos »

Thanks for your fast debug.
I use Cudatext very much.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: freeze long time when delete the content from a huge file

Post by main Alexey »

You are welcome.
Post Reply