Re: ctfe append too slow, but can't speed up

2017-04-12 Thread Stefan Koch via Digitalmars-d-learn
On Tuesday, 11 April 2017 at 02:20:37 UTC, Jethro wrote: ctfe string appending is way to slow, I have tried the suggested methods and nothing works and slows down by at least an order of magnitude. I need a drop in replacement(no other changes) that can take over the duties of string and

Re: ctfe append too slow, but can't speed up

2017-04-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 11 April 2017 at 02:20:37 UTC, Jethro wrote: I need a drop in replacement(no other changes) that can take over the duties of string and allow for memory reuse. There is no memory reuse in CTFE right now, that's why the engine is being rewritten... I'd suggest writing a regular

ctfe append too slow, but can't speed up

2017-04-10 Thread Jethro via Digitalmars-d-learn
ctfe string appending is way to slow, I have tried the suggested methods and nothing works and slows down by at least an order of magnitude. I need a drop in replacement(no other changes) that can take over the duties of string and allow for memory reuse. reserve, cpacity, assumeSafeAppend