vibe.d & exception performance

Marc Schütz" <schuetzm at gmx.net> Marc Schütz" <schuetzm at gmx.net>
Sun Feb 9 08:47:41 PST 2014


On Sunday, 9 February 2014 at 16:12:30 UTC, Jakob Ovrum wrote:
> On Sunday, 9 February 2014 at 16:07:52 UTC, Marc Schütz wrote:
>> But the difference actual difference is so much larger. Where 
>> does it come from? It might mean that there is some costly 
>> operation that both `new` and `toString()` perform. Or it 
>> might actually be a bug, and when fixed, would have worse 
>> performance. It seems almost too good to be true...
>
> They both allocate GC memory, which can cause a collection 
> cycle. Could that be it?

No, I just checked this by allocating another exception in 
addition to the one being thrown, and it made no difference.

But I think I've found the explanation, see my previous post.


More information about the Digitalmars-d mailing list