← Back to index
|
Original Bugzilla link
Bug 18342 – std.concurrency needs to be optimized
Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-01-31T04:13:21Z
Last change time
2024-12-01T16:32:22Z
Assigned to
No Owner
Creator
Seb
Moved to GitHub: phobos#10302 →
Comments
Comment #0
by greensunny12 — 2018-01-31T04:13:21Z
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 C++. There's lots of slow stuff going on in `std.concurrency` - it uses double mutex-locking - once in `put` (
https://github.com/dlang/phobos/blob/931a25126b4fabaca0ed261d145c9aa444a193f7/std/concurrency.d#L1904)
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:
https://github.com/Voultapher/Fast-Code-Competition
Comment #1
by robert.schadek — 2024-12-01T16:32:22Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/phobos/issues/10302
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB