[Issue 17210] DMD's Failure to Inline Calls in std.array.Appender.put Cause 3x Slowdown

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17210

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P1  |P2

--


[Issue 17210] DMD's Failure to Inline Calls in std.array.Appender.put Cause 3x Slowdown

2017-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17210

--- Comment #2 from Jack Stouffer  ---
BTW, making this @safe by changing the manual code to

static if (isBasicType!U)
{
auto d = (() @trusted => _data.arr.ptr[0 .. len + 1])();
d[len] = cast(Unqual!T) item;
_data.arr = d;
}

makes the code twice as slow as the other manual version

--


[Issue 17210] DMD's Failure to Inline Calls in std.array.Appender.put Cause 3x Slowdown

2017-02-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17210

ZombineDev  changed:

   What|Removed |Added

   Keywords||performance
 CC||petar.p.ki...@gmail.com

--


[Issue 17210] DMD's Failure to Inline Calls in std.array.Appender.put Cause 3x Slowdown

2017-02-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17210

--- Comment #1 from Jack Stouffer  ---
Created attachment 1637
  --> https://issues.dlang.org/attachment.cgi?id=1637&action=edit
Appender Benchmark

--