Bug 18463 – std.algorithm.joiner is slow

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-19T04:29:17Z
Last change time
2024-12-01T16:32:46Z
Assigned to
No Owner
Creator
Seb
Moved to GitHub: phobos#10311 →

Comments

Comment #0 by greensunny12 — 2018-02-19T04:29:17Z
tl;dr: joiner is twice as slow than a foreach loop A first start: https://gist.github.com/wilzbach/ffd5d20639766a831fd4b1962572897a While it's quite an improvement for LDC, it reduces the performance for DMD. Moreover, the `alias this` trick used to introduce as little changes as possible introduces a overhead too.
Comment #1 by greensunny12 — 2018-05-02T15:54:57Z
Comment #2 by robert.schadek — 2024-12-01T16:32:46Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10311 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB