Gedit takes many minutes to start if there are many files in directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gedit
Gedit takes forever (many minutes) to start up if there are a lot of files in the same directory. It also takes a similar time to exit.
I had about 70,000 small text files (each around 1K) in a directory. Double clicking on one in Nautilus resulted in many minutes before GEdit appeared. In contrast, other editors work instantly, e.g. nano, vim. Even Open Office opens any of these files quickly!
Perhaps http://
"I think I know why it takes so long to load: How many files/folders does the directory you are trying to load have? gedit remembers the last directory, and it could be the fact that your last used directory has a lot of files/folders to be read."
It sounds as if GEdit is trying to be too clever, and whatever it's doing with the last used directory needs to be rethought. Though I don't think this is the complete explanation, because I believe this was the first time I'd tried to use GEdit in this directory.
Using Ubuntu 10.10.
gedit:
Installed: 2.30.3-1ubuntu1
Candidate: 2.30.3-1ubuntu1
Version table:
*** 2.30.3-1ubuntu1 0
500 http://
100 /var/lib/
Further info. A friend has tried to repro this, as follows:
> I created 70K files in a directory and gedit opens normally on Mint. The
> file system is ext4. If I try and browse the files in "File->Open" or in
> the "File Browser" in the side panel it takes it's time to populate the
> browser, but starting and stopping seem fine to me.
>
> I do seem to have recreated the issue with an ext3 file system. Opening
> a file on the ext3 file system causes gedit to run at 100% on a core for
> about a minute, but only after a file on the ext3 file system. Once I
> went back to editing files on ext4, it worked as normal.
I'm using ext3. However, I would be very disappointed if this problem
were 'fixed' by saying I should install ext4. For example, Kate works
fine on my system with these files. (I use ext3 because some of the
tools on my older live CDs don't support ext4).