Subject: Re: bug#10580: 24.0.92; gdb initialization takes more than one minute at 100% CPU

From: Stefan Monnier <[email-masked]>
Date: Thu, 10 May 2012 16:25:59 -0400

> Here are the tests when using the the latest cvs gdb that yields a gdb
> output file of about 800k.

> Without gdb-get-source-file-list override: ~139s
> With gdb-get-source-file-list override: ~125s

> Thus it is clear that most of the time is taken just reading the string
> into emacs. But doing find-file on the same file is almost instantaneous.

Sounds like a perfect test case for the native elisp profiler (a
prototype of which is at
http://cx4a.org/hack/emacs-native-profiler.html, and hopefully it will
mature over the summer since it's funded as a GSoC).

        Stefan