On Mar 19 08:56, Lionel Cons wrote: > On Tue, 18 Mar 2025 at 20:51, Corinna Vinschen > <corinna-cyg...@cygwin.com> wrote: > > > > Fodder for future Cygwin development: > > What about switching Cygwin's dlmalloc to use USE_LOCKS for better > multi thread performance?
USE_LOCKS won't help multi threading performance. It just adds a global lock we already have. We could probably get rid of the locking calls in mm/malloc_wrapper.cc. Nice, but no help performancewise. We could try to enable MSPACES (but not ONLY_MSPACES) and redirect all malloc calls from user-space to per-thread mspace_malloc calls. That may be worth a try. Corinna