www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18342] New: std.concurrency needs to be optimized


          Issue ID: 18342
           Summary: std.concurrency needs to be optimized
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: greensunny12 gmail.com

I recently used D on a C++ performance Meetup where they were testing
submitting functions to a worker thread and guess what - D was 5x slower than

There's lots of slow stuff going on in `std.concurrency`

- it uses double mutex-locking - once in `put`
and once in the List itself

- it uses the GC for all allocation

- the list implementation isn't very efficient

The challenge in case someone is interested:


Jan 30 2018