From: Ergus <spacibba@aol.com>
To: emacs-devel@gnu.org
Subject: Re: Some performance questions.
Date: Thu, 9 Feb 2023 14:14:59 +0100 [thread overview]
Message-ID: <20230209131459.zvgu7pvgctiea2vp@Ergus> (raw)
In-Reply-To: <837cwrnz0e.fsf@gnu.org>
On Thu, Feb 09, 2023 at 08:17:37AM +0200, Eli Zaretskii wrote:
>> Date: Wed, 08 Feb 2023 21:56:31 +0100
>> From: Ergus <spacibba@aol.com>
>> CC: emacs-devel@gnu.org
>>
>> Thanks for replying. Is the GC also improved by tree-sitter? Because it is taking a significant part of the
>> time, as you can see in my first mail.
>
>Tree-sitter based modes do less processing in Lisp (the buffer parsing
>is doen by the tree-sitter and the grammar libraries, entirely in C
>and C++), so they should in general produce less garbage and require
>less GC, yes.
>
>Turning on jit-stealth also lowers the GC pressure because it
>fontifies buffers during idle time, so by the time you get to actually
>editing a buffer it is already fontified, and thus all the garbage
>produced by fontifications was already produced and collected; the
>editing itself will produce much less garbage.
>
>Finally, I see that in my customizations I increase gc-cons-threshold
>to 1800000 (from the default of 800000), so maybe try that as well.
>
Hi Eli:
Very very thanks for the hints. ATM I'll stay with cc-mode and the other
suggestions you did due to the next comments.
(I know it is a WIP, probably some of these comments are not issues, but
just need a bit more details in the documentation... and I am dumb)
1) The new c-ts-mode-indent-style is a bit confusing for a cc-mode
user...,
could you add some similar/equivalent examples than the ones in the
cc-mode documentation in order to extrapolate/translate?
OR
Is it possible to use add examples of equivalent implementations between
c-offsets-alist and c-ts-mode-indent-style.
2) In case the user wants to modify an indentation style, is it possible
to use another existing style and use it as base template like
c-add-style does?
3) Which of the cc-hooks (c-hanging-braces-alist, c-cleanup-list and
c-hanging-semi&comma-criteria) is already possible to reproduce with ts?
some example please :(
4) Is it possible already (I am sure that in the future they will), to
create behaviors like c-lineup-arglist,
c-lineup-arglist-intro-after-paren, or c-snug-do-while?
I had some other small issues here and there (one of them I reported,
the others I will do once I assert are not mistakes in my config).
Best and thanks,
Ergus
next prev parent reply other threads:[~2023-02-09 13:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230208190819.z7xwgxm5gpbzmjrz.ref@Ergus>
2023-02-08 19:08 ` Some performance questions Ergus
2023-02-08 20:09 ` Eli Zaretskii
2023-02-08 20:15 ` Eli Zaretskii
2023-02-08 20:56 ` Ergus
2023-02-09 6:17 ` Eli Zaretskii
2023-02-09 13:14 ` Ergus [this message]
[not found] ` <20230209114928.eqpojruluur42hur@Ergus>
2023-02-09 13:46 ` Eli Zaretskii
2023-02-09 15:45 ` Ergus
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=20230209131459.zvgu7pvgctiea2vp@Ergus \
--to=spacibba@aol.com \
--cc=emacs-devel@gnu.org \
/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.