ada-mode-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ada-mode-users] Performance problems


From: Stephen Leake
Subject: Re: [ada-mode-users] Performance problems
Date: Fri, 22 Oct 2021 04:54:50 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt)

Manuel Gómez <mgrojo@gmail.com> writes:

> I'm having performance problems when using ada-mode 7.8 which keep me
> back from making the definitive switch away from version 4.0. For an
> example of a publicly available file I can suggest this:
>
>
https://raw.githubusercontent.com/reznikmm/matreshka/d907a15b628f17df4ab469960373e2ae31e1edd3/source/league/ucd/matreshka-internals-unicode-ucd-colls.ads

This is a huge file; much bigger than the huge file I use for a timing
benchmark.

> Opening that file and trying to move around blocks emacs for a while.
> At the same time, ada_mode_wisi_lr1_parse starts to consume a lot of
> CPU and resident memory. Trying to edit seems impossible.

The parser overflows the execution stack, which means Emacs restarts it,
and never succeeds in parsing the file.

I don't have a fix for this. A workaround is to reduce
wisi-size-threshold, so Emacs won't use the parser for this and other
large files. It will still have keyword fontification, but no other
features.

I'll add this file to my benchmark suite; maybe I'll be able to improve
the parser to handle it.

-- 
-- Stephe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]