On 3/19/2025 2:59 AM, Corinna Vinschen wrote:
On Mar 19 08:56, Lionel Cons wrote:
On Tue, 18 Mar 2025 at 20:51, Corinna Vinschen
<corinna-cygwin-rdbxbdvo6bxqt0dzr+a...@public.gmane.org> 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.

Maybe something like
https://cygwin.com/pipermail/cygwin-patches/2020q4/010905.html
(Note that that won't apply now due to code re-arrangements since.)

I didn't have the bandwidth to follow up on why that wasn't accepted back at the time.

..mark

Reply via email to