vibe.d & exception performance

Daniel Murphy yebbliesnospam at gmail.com
Sun Feb 9 03:31:20 PST 2014


void index(HTTPServerRequest req, HTTPServerResponse res)
{
     static const exc = new
HTTPStatusException(HTTPStatus.NotFound);
     throw exc;
}

exc is created at compile time and put the tls init data.  No gc heap 
activity is ever involved in creating it. 



More information about the Digitalmars-d mailing list