Divide & Conquer divides, but doesn't conquer

Max Samukha maxsamukha at gmail.com
Mon May 25 07:26:52 UTC 2020


On Monday, 25 May 2020 at 06:18:13 UTC, FeepingCreature wrote:

>
> static foreach and stringof were used so I didn't have to pull 
> in `format` or `to!string`, which had issues in std.meta.
>
> I'm seeing some improvement over 2.086 at least; it should be 
> about equivalent to the hand-unrolled version in master.

State-of-the-art is to preallocate the result string and use the 
string counter hack)) 
http://dpldocs.info/this-week-in-d/Blog.Posted_2020_05_11.html#dmd-and-static-foreach

Stefan's work could make all this unnecessary but alas.


More information about the Digitalmars-d mailing list