From: Lars Ingebrigtsen <larsi@gnus.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: Sam Halliday <sam.halliday@gmail.com>,
20703@debbugs.gnu.org, help-gnu-emacs@gnu.org
Subject: bug#20703: BUG 20703 further evidence
Date: Tue, 25 Aug 2020 11:13:08 +0200 [thread overview]
Message-ID: <875z97dr6j.fsf__21536.2051663519$1598346855$gmane$org@gnus.org> (raw)
In-Reply-To: <5696C0CC.9010300@yandex.ru> (Dmitry Gutov's message of "Thu, 14 Jan 2016 00:25:32 +0300")
Dmitry Gutov <dgutov@yandex.ru> writes:
>> I'm triggering the error in an extremely long line of code (46,000
>> characters!).
[...]
> - re-search-forward with limit, as implemented in the patch below
> (against emacs-25), that might work against problematic files like
> that (I haven't tested it).
>
> I don't really know if we should install it, though, because it adds a
> performance overhead of ~10%. And I don't know if this problem is
> common enough.
I think this is a use case (46K long lines) that's really obscure, and a
10% performance it wouldn't be appropriate.
> Because another way to combat it is at the source: through judicious
> application of --exclude argument. As a bonus, the generation phase
> will become faster as well (sometimes dramatically).
>
> Should we add a validation phase to visit-tags-table instead? Like,
> one that would say "your TAGS files contains obviously malformed
> entries from file XXX.min.js, go back and ignore it"?
If that can be done efficiently, then that sounds like a good idea.
Otherwise, perhaps we should just say that etags just doesn't support
46K long line source files and close this report as a wontfix?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-08-25 9:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-13 17:54 BUG 20703 further evidence Sam Halliday
2016-01-13 21:25 ` bug#20703: " Dmitry Gutov
2016-01-13 21:25 ` Dmitry Gutov
2020-08-25 9:13 ` bug#20703: " Lars Ingebrigtsen
2020-08-25 14:54 ` Drew Adams
2020-10-11 3:08 ` Lars Ingebrigtsen
2020-10-11 3:08 ` Lars Ingebrigtsen
2020-08-25 9:13 ` Lars Ingebrigtsen [this message]
[not found] ` <mailman.2317.1452720341.843.help-gnu-emacs@gnu.org>
2016-01-13 21:36 ` Sam Halliday
2016-01-13 21:50 ` Dmitry Gutov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='875z97dr6j.fsf__21536.2051663519$1598346855$gmane$org@gnus.org' \
--to=larsi@gnus.org \
--cc=20703@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
--cc=help-gnu-emacs@gnu.org \
--cc=sam.halliday@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.