💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › kisslinux-2023-05-11.txt captured on 2023-05-24 at 19:05:49.
-=-=-=-=-=-=-
[2023-05-11T04:38:58Z] <testuser[m]> Hi [2023-05-11T07:23:03Z] <sewn> 🐈 [2023-05-11T11:01:36Z] <GoatAvenger> does 'kiss b suchandsuch' build with multiple-threads by default, or does it only build with a single thread? and if only a single threads, is there some way to have builds be multi-threaded? [2023-05-11T14:30:37Z] <davidgarland> GoatAvenger: put "export MAKEFLAGS=-jN" into your ~/.profile, where N is the number of threads your CPU has [2023-05-11T14:31:17Z] <davidgarland> I think cargo might use multiple threads by default, unsure [2023-05-11T14:31:28Z] <davidgarland> but for C that's what you need [2023-05-11T14:33:06Z] <GoatAvenger> davidgarland, that will cover ninja builds and cmake builds as well? (if I'm making sense) [2023-05-11T14:34:04Z] <davidgarland> yeah, I believe so-- haven't had any builds that seemed like they were running single threaded under those [2023-05-11T14:34:17Z] <GoatAvenger> sweeeet, thnx a lot [2023-05-11T14:38:27Z] <davidgarland> it looks like samurai (the library that supplies ninja) just always uses the max number of available threads when deciding how many jobs to do? https://github.com/michaelforney/samurai/blob/2d05a9ac47794131efeb59e7dc4ee99287738c9c/parse.c#L194 [2023-05-11T14:38:57Z] <davidgarland> well, there's some more complicated "load average" thing they mention but basically it seems like it might just ignore MAKEFLAGS and always run multiprocess [2023-05-11T14:39:19Z] <davidgarland> either way no cause for concern [2023-05-11T14:39:30Z] <testuser[m]> davidgarland: SAMUFLAGS=-jN [2023-05-11T14:39:48Z] <davidgarland> aa nice [2023-05-11T14:39:52Z] <davidgarland> does that make a difference in your experience? [2023-05-11T14:40:40Z] <testuser[m]> It uses that lol [2023-05-11T14:40:44Z] <testuser[m]> i use ti for chromium [2023-05-11T14:40:50Z] <davidgarland> what I mean is [2023-05-11T14:40:57Z] <davidgarland> is it noticably faster than the default number of jobs it picks [2023-05-11T14:41:19Z] <davidgarland> because the bit I linked seems to suggest they try to auto detect that [2023-05-11T14:43:34Z] <testuser[m]> i use it. To limit not increase [2023-05-11T14:44:03Z] <davidgarland> gotcha [2023-05-11T14:44:08Z] <GoatAvenger> I did look into it previous; if my understanding is correct, ninja uses max by default. Thnx for extra info testuser[m]; that helps too. [2023-05-11T14:44:34Z] <GoatAvenger> Many thnx testuser[m], davidgarland.