emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] support for accessing CPU/core count (processor-count)


From: Arthur Miller
Subject: Re: [PATCH] support for accessing CPU/core count (processor-count)
Date: Sun, 10 Oct 2021 21:50:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> We seem to be talking past each other. I don't see why would want this as a C
>> primitive.
>
> There are typically 2 reasons to use C:
> - For speed
> - To use someone else's code which is easily available from C but not
>   from ELisp.

Of course, but I don't see any of those apply to this case :).

As I see nproc from core-utils is already doing suggested, and more than so, so
it is just to call it :).

https://github.com/coreutils/gnulib/blob/master/lib/nproc.c

PS: it is not directly "a couple of lines" either as someone suggested :).



reply via email to

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