Proposal: takeFront and takeBack
Ed McCardell
edmccard at hotmail.com
Wed Jul 4 03:42:32 PDT 2012
On 07/04/2012 04:50 AM, Jonathan M Davis wrote:
> But reducing code was never my concern (nor Dmitry's in considering proposing
> essentially the same thing). It's efficiency that's the problem - particularly
> with strings. IIRC, with the tests that I ran, it took about 33% longer to use
> front and popFront separately than it did to use consumeFront with strings.
Does the speed difference show up in both GDC and DMD? (If you can post
some test code, I can check GDC on linux).
--Ed
More information about the Digitalmars-d
mailing list