Public bug reported: Binary package hint: gedit
Hello. I'm running Hardy (8.04.1) on a Centrino Duo machine with 1GB of RAM. Gedit seems to take a ridiculously long time to start up. An informal "time gedit" takes about four seconds, and a second more for loading a 500 bytes file. In contrast Geany, which is much more complex, takes less than two seconds, including loading the last-opened file. I'm not exactly sure what's going on, but a quick strace shows that just for starting up empty Gedit calls time and stat64 around 25 _thousand_ times each. When a file is opened, this doubles. The calls themselves are quick, but I'm sure all that context switching hurts. (And even if it didn't, why does it need to do that 50000 times?!) It also seems to open and read about a thousand files, and gettimeofday 500 times, which again seems excessive for a basic text editor. [EMAIL PROTECTED]:~/documents$ strace -c -f gedit Process 9581 detached % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 48.04 0.028045 202 139 write 24.21 0.014135 15 948 121 read 18.34 0.010707 0 24601 525 stat64 6.85 0.004000 2000 2 rename 2.22 0.001298 0 27026 time 0.25 0.000146 0 932 367 open [ snip ] [EMAIL PROTECTED]:~/documents$ strace -cf gedit test.txt Process 9967 detached % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 61.77 0.072004 537 134 write 12.19 0.014209 15 961 110 read 11.03 0.012853 4284 3 rename 10.74 0.012515 0 48138 567 stat64 2.31 0.002696 0 36042 time 0.66 0.000770 110 7 mremap 0.30 0.000352 2 229 select 0.29 0.000341 1 392 getdents64 0.24 0.000285 0 945 371 open 0.15 0.000176 1 199 writev 0.12 0.000145 0 360 mmap2 0.09 0.000107 0 583 1 close 0.05 0.000059 2 39 _llseek 0.03 0.000039 13 3 getgid32 0.02 0.000023 0 575 gettimeofday ** Affects: gedit (Ubuntu) Importance: Undecided Status: New -- gedit is ridiculously slow (and does too much work) https://bugs.launchpad.net/bugs/247228 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gedit in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs