(The strace is zipped because it's 3.8 MB. Repetitive, though.)

Next I tried to do a backtrace of one of the funny 'time' calls. The
backtrace is done using gedit-dbgsym 2.22.1-0ubuntu1 (There's a slightly
newer version in the repositories, but I've no debug packages for that
one, and the behavior is identical in this case.)

Compare this run with the strace above; there are a few apparently
legitimate time calls early, then it enters a loop where it runs time a
few tens of thousand of times. I set up a break point on 'time',
backtraced its first occurrence, continued until it entered the "loop",
and then I backtraced a few more calls. They all seem very similar;
apparently they're related to parsing something called ~/.recently-
used.xbel

$ ls .recently-used* -la
-rw------- 1 bogdanb bogdanb   20456 2008-07-13 20:03 .recently-used
-rw-r--r-- 1 bogdanb bogdanb 4863100 2008-07-13 21:37 .recently-used.xbel
-rw-r--r-- 1 bogdanb bogdanb 4259840 2008-05-13 15:08 .recently-used.xbel.FXASAU

They're quite big (any real reason for that?), and even if gedit just
parses each on every start-up I imagine that would take a long time. The
file contains just a big list of entries like:

 <bookmark href="file:///tmp/DonohueLevittTheImpactOfLegalized2001-1.pdf" 
added="2008-07-12T22:31:01Z" modified="2008-07-12T22:31:01Z" 
visited="2008-07-12T22:31:01Z">
    <info>
      <metadata owner="http://freedesktop.org";>
        <mime:mime-type type="application/pdf"/>
        <bookmark:applications>
          <bookmark:application name="Evince Document Viewer" 
exec="&apos;evince %u&apos;" timestamp="1215901861" count="1"/>
        </bookmark:applications>
      </metadata>
    </info>
  </bookmark>
  <bookmark href="file:///home/bogdanb/stracing-gedit" 
added="2008-07-13T19:15:14Z" modified="2008-07-13T19:19:05Z" 
visited="2008-07-13T19:15:14Z">
    <info>
      <metadata owner="http://freedesktop.org";>
        <mime:mime-type type="application/octet-stream"/>
        <bookmark:applications>
          <bookmark:application name="geany" exec="&apos;geany %u&apos;" 
timestamp="1215976745" count="2"/>
        </bookmark:applications>
      </metadata>
    </info>
  </bookmark>

I've no idea why Gedit calls time for each entry (as it would seem it
does), nor why the file got so large.

I've seen some pages on the net on how to get rid of the file -- at
http://ubuntuforums.org/archive/index.php/t-91154.html -- so apparently
others have been annoyed by it, but I still don't know exactly what's up
with it.

-- 
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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to