On Sat, Mar 11, 2023 at 05:45:15PM -0800, Jim Porter wrote: [...] > In any case, working on this would likely be a big help for Emacs. One of > the more-common things I see people wish for in Emacs is "threading". I > think this is probably a mistaken wish (Emacs generally doesn't use enough > CPU to saturate a core), but what they really want is for fewer operations > that block for a long time. If it were easier to divide up long-running > tasks into small chunks, that would go a long way towards solving these > sorts of issues. Oooh. You made my day :) > (In theory, you could even get real multithreading this way, if you could > divide up your task in a way that Emacs could be sure some chunk can be > offloaded onto another thread.) Exactly: those are two different building blocks, and most useful when available separately. Cheers -- t