Random ideas for 3.7
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Mar 19 09:59:51 GMT 2025
On Mar 19 08:56, Lionel Cons wrote:
> On Tue, 18 Mar 2025 at 20:51, Corinna Vinschen
> <corinna-cygwin@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
More information about the Cygwin-developers
mailing list