Page 1 of 1

freeze long time when delete the content from a huge file

Posted: 29.03.2024 03:08
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?

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

Posted: 29.03.2024 05:50
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.

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

Posted: 29.03.2024 06:03
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)

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

Posted: 29.03.2024 07:16
by hycmos
Thanks for your fast debug.
I use Cudatext very much.

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

Posted: 29.03.2024 13:44
by main Alexey
You are welcome.