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