#756297 gedit: Show a warning dialog when opening large files (>50kB?) to prevent extreme slowdown

Package:
gedit
Source:
gedit
Description:
popular text editor for the GNOME desktop environment
Submitter:
David Z
Date:
2014-07-28 14:18:11 UTC
Severity:
wishlist
#756297#5
Date:
2014-07-28 14:16:10 UTC
From:
To:
Dear Maintainer,

I've had some near-disasters occur when I've accidentally opened large files
with gedit. Even a file as small as 40kB can drive gedit to very high CPU and
memory usage for a couple minutes. If it's a file that's tens of megabytes, it
can go on for quite a while...

I would definitely appreciate it if gedit checked the size of a file to be
opened, and if it's above a certain size (I would suggest 50kB, but as low as
20kB may be appropriate), a dialog popup was offered saying something like,
"The file you're trying to open is very large, and may cause gedit to hang for
a long time while it is opened. Are you sure you want to open this file with
gedit? [Yes] / [No]".

This is mostly an issue because of gedit's tabbing feature, which means that if
I want to kill the process, I am also killing other, potentially important
documents being edited. Another acceptable fix (to me), though certainly much
more difficult to implement (for you wonderful developers), would be to make
each tab a separate process.

Thank you for the work that you do on this wonderful software - may the next
thing you drink be immensely refreshing!