From: Eli Zaretskii <eliz@gnu.org>
To: WAROQUIERS Philippe <philippe.waroquiers@eurocontrol.int>
Cc: 55636@debbugs.gnu.org, jurgen.de-backer.ext@eurocontrol.int,
stef.van-vlierberghe@eurocontrol.int
Subject: bug#55636: 27.2; etags performance fix when working with very big TAGS files
Date: Thu, 26 May 2022 18:09:41 +0300 [thread overview]
Message-ID: <83tu9cnxe2.fsf@gnu.org> (raw)
In-Reply-To: <d5a6b9b21efe4656b9a9a8000d92510f@eurocontrol.int> (message from WAROQUIERS Philippe on Thu, 26 May 2022 14:54:04 +0000)
> From: WAROQUIERS Philippe <philippe.waroquiers@eurocontrol.int>
> CC: "DE BACKER Jurgen (EXT)" <jurgen.de-backer.ext@eurocontrol.int>,
> "55636@debbugs.gnu.org" <55636@debbugs.gnu.org>, VAN VLIERBERGHE Stef
> <stef.van-vlierberghe@eurocontrol.int>
> Date: Thu, 26 May 2022 14:54:04 +0000
>
> So, I think the problem is just the size our 4 TAGS files:
>
> One is about 62 MB, 914_000 lines, of those lines, about 59_000 are file names lines,
> another one 46 MB, 629_000 lines, also 59_000 file names lines.
>
> We have 2 other smaller TAGS file (8MB and 9MB).
>
> I have run emacs under valgrind --tool=callgrind.
>
> valgrind points at expand-file-name eating significant cpu (see attachment).
I'm not sure I understand how to interpret that screenshot.
> I have also used the lisp profiler when loading the TAGS files.
>
>
> - call-interactively 10141 84%
> - funcall-interactively 10077 84%
> - find-tag 10069 83%
> - find-tag-noselect 10069 83%
> - visit-tags-table-buffer 9584 79%
> - tags-table-including 9578 79%
> - tags-table-extend-computed-list 4327 36%
> - tags-verify-table 3274 27%
> - apply 3274 27%
> - ad-Advice-tags-verify-table 3274 27%
This says that most of the time is spent in tags-table-including. If
you manually load etags.el (NOT .elc!), and then profile the same
operation, the profile could show in more detail which parts of
tags-table-including takes most of the time, and we can take it from
there.
Thanks.
next prev parent reply other threads:[~2022-05-26 15:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-25 16:04 bug#55636: 27.2; etags performance fix when working with very big TAGS files Jurgen De Backer via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-25 17:16 ` Eli Zaretskii
2022-05-25 20:42 ` VAN VLIERBERGHE Stef via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-26 5:07 ` Eli Zaretskii
2022-05-26 13:50 ` VAN VLIERBERGHE Stef via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-26 14:54 ` WAROQUIERS Philippe via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-26 15:09 ` Eli Zaretskii [this message]
2022-05-26 17:25 ` WAROQUIERS Philippe via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-26 19:10 ` Eli Zaretskii
2022-05-26 20:45 ` WAROQUIERS Philippe via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83tu9cnxe2.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=55636@debbugs.gnu.org \
--cc=jurgen.de-backer.ext@eurocontrol.int \
--cc=philippe.waroquiers@eurocontrol.int \
--cc=stef.van-vlierberghe@eurocontrol.int \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).