gcmh
emacs-async
gcmh | emacs-async | |
---|---|---|
7 | 24 | |
105 | 820 | |
0.0% | - | |
0.0 | 6.2 | |
over 3 years ago | about 1 month ago | |
Emacs Lisp | Emacs Lisp | |
- | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gcmh
-
The original magic Emacs garbage collection hack
cf. https://github.com/emacsmirror/gcmh (the author's [=Andrea Corallo's] Emacs package "GCMH - the Garbage Collector Magic Hack")
-
is it just me, or LSP mode is very slow in emacs?
A lot of people use way higher values than 800 KB without any problems. As a matter of fact, I've been using 256 MB for a very long time, haven't noticed any issues with it. So I wouldn't call 1 GB madness, it can be perfectly fine in some cases, especially if one uses gcmh, so it has a high chance that GCs will happen when the user doesn't interact with emacs (I also setup emacs to do GC when emacs loses focus. This means that GC pause is invisible most of the time for me). I strongly prefer very rare, short GC pauses than microstuttering all the time. Also, some operations apply a lot of pressure to the memory system, and do hundreds of GCs with the default setting, so most of the CPU time is spent in the GC when these operations run. Increasing gc-cons-threshold makes such operations much faster which means less pauses.
-
Setting up a fundraiser for multi-threaded Emacs, any thoughts on this?
One possible solution is to switch to a LSP approach. You should also take a look at the garbage-collector-magic-hack package: https://github.com/emacsmirror/gcmh
-
Chosing an Emacs Distro on M1 OS X
If you experience some lag, my first advice would be to install the GCMH package. It basically changes the garbage-collection rules to ensure that most garbage collection will happen in small bouts while Emacs is idle. After installing it I've never had my Emacs lag on me. This wouldn't address the retina-display issues you mentioned, but I've never experienced those with emacs-plus.
-
Will we be ever seeing multithreading in emacs?
I've seen gcmh recommended as a library that configures the garbage collector for you. Not sure if it is truly a "one size fits all" solution though.
- make emacs run 100% faster and snappier
-
Configuring emacs
I’d add that for 1) beacon is a good package. For 2), this may be an issue where you have multiple emacs configuration files. This is a serious problem. 3) be patient, and use the magic GC hack. To add to that, you should probably set the GC threshold to be high. 4) projectile? 5)emacs -nw.
emacs-async
- emacs-async: Simple library for asynchronous processing in Emacs
-
Is there any way to run an emacs function as a separate process?
That is probably the simplest option possible; but if you need non-blocking evaluation, async package is definitely a better option.
-
Is it possible for Emacs Lisp to get something like multiprocessing from Python?
You already can. Using https://github.com/jwiegley/emacs-async or https://github.com/chuntaro/emacs-promise.
-
How to turn sequential computation into parallel computation in Elisp?
IMO the best option currently is async by Wiegley. It will manage Emacs instances for you and do all the low-level synchronization and messaging for you, so you can work in higher level abstractions as if you are working with threads.
-
Asynchronous alternative to xref?
Have you checked the async package?
-
Lsp-Bridge, Not Even Wrong
That is quite normal thing to do. Have you not seen Emacs Async? Take, a look, it is a useful thing. Or Emacs Request. Since Emacs does not have proper thread scheduler, that is the best next thing you can do.
-
[ANN] Blamer 0.6.0 released. Added pretty avatar preview
There are ways to avoid this, have you tried e.g. https://github.com/jwiegley/emacs-async ?
-
Video Series: Denote as a Zettelkasten
As a note about the third video, and searching for backlinks; the volume, when you get there, might be a slow-down when you work with many small files, like searching for backlinks. Each note means a separate file access, search process, etc. It is much more efficient for computers to read one big file, then many small files, and then just use Emacs to search in that file. If you are a developer of Denote, you might wish to look at asynchronous processes or perhaps use Wigleys Async package to search for backlinks asynchronously.
-
Setting up a fundraiser for multi-threaded Emacs, any thoughts on this?
Async process can do that. Have you checked async library by Wiegley? You can use another emacs process as a sort of clean interpreter thread similar to javascript workers.
-
My IDE is too heavy so I moved to Emacs
That "99% of standard usage" is the kicker, isn't it? Those greybeards who always opposed multithreading since long ago tend to say that the remaining 1% of use cases is best done in an external process, ideally not even written in Emacs Lisp, so that the rest of the open source community can benefit, like the GNU Global you mention. I suppose if you still want that program to be written with Emacs Lisp, you could use async.el (https://github.com/jwiegley/emacs-async/) and there's finally an use-case for the threads: it'll be relatively safe to run those 16 threads only in the external Emacs-process.
What are some alternatives?
beacon - A light that follows your cursor around so you don't lose it!
ranger.el - Bringing the goodness of ranger to dired!
emacs-faff-theme - Emacs Faff Theme - a light theme based on the Emacs default, extensively tweaked.
Taskflow - A General-purpose Parallel and Heterogeneous Task Programming System
lambda-emacs - Emacs distribution with sane defaults, pre-configured packages, and useful functions.
esxml - An elisp library for working with xml, esxml and sxml.
GNU Emacs - Mirror of GNU Emacs
Thrust - [ARCHIVED] The C++ parallel algorithms library. See https://github.com/NVIDIA/cccl
build-emacs-macos - Build script for emacs and macos
org-yaap
emacs-libvterm - Emacs libvterm integration
oneTBB - oneAPI Threading Building Blocks (oneTBB)