Proposal: takeFront and takeBack

deadalnix deadalnix at gmail.com
Wed Jul 4 15:02:27 PDT 2012


Le 04/07/2012 21:45, Jonathan M Davis a écrit :
> On Wednesday, July 04, 2012 12:19:15 Jonathan M Davis wrote:
>> But at present, I'm seeing a performance improvement of approximately 70 -
>> 80% in iterating over strings with consumeFront rather than front and
>> popFront (depending on the compiler flags and strings used).
>
> I should clarify that. It's taking 70 - 80% as long to use consumeFront to
> iterate over a string than it is to iterate using popFront and getting front
> on every iteration. The way I worded that could imply that it was taking 20 -
> 30% as much time, which would be a _much_ larger improvement than I'm actually
> seeing.
>
> - Jonathan M Davis

The win is significant indeed.


More information about the Digitalmars-d mailing list