|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [gameprogrammer] Re: std::string alternative
Like I originally said, every function call is slower. I don't have the URL (maybe someone can find it) but if you read the Halo 2 postmortem they got a 5% speed increase by turning off exceptions. David Olsen wrote: So does extra work at the compiler level still translate into slower performance in code execution? Or does it just take a little longer to compile (with exceptions turned "off") but runs as fast as possible. I personally wouldn't mind adding a little bit of compile time, but I'd hate to impact my overall game performance...-Dave OlsenDave Slutzkin wrote:So turn 'em off and keep using std::string? If you're not checking them anyway then there's zero difference in functionality.The compiler does extra work before going in to any function if it knows (via declarations) that it has to handle some exceptions being thrown, in order toproperly handle the way exceptions are passed back up the call stack. -- Matthew Weigel hacker unique & idempot.ent --------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html --------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html
|
|