[gameprogrammer] Re: std::string alternative
- From: Kevin Jenkins <gameprogrammer@xxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Sun, 20 May 2007 22:07:55 -0700
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 Olsen
Dave 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 to
properly 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
- Follow-Ups:
- [gameprogrammer] Re: std::string alternative
- From: Dave Slutzkin
- References:
- [gameprogrammer] std::string alternative
- From: Kevin Jenkins
- [gameprogrammer] Re: std::string alternative
- From: Dave Slutzkin
- [gameprogrammer] Re: std::string alternative
- From: Kevin Jenkins
- [gameprogrammer] Re: std::string alternative
- From: Dave Slutzkin
- [gameprogrammer] Re: std::string alternative
- From: Matthew Weigel
- [gameprogrammer] Re: std::string alternative
- From: David Olsen
Other related posts:
- » [gameprogrammer] std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
- » [gameprogrammer] Re: std::string alternative
-Dave Olsen
Dave 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
- [gameprogrammer] Re: std::string alternative
- From: Dave Slutzkin
- [gameprogrammer] std::string alternative
- From: Kevin Jenkins
- [gameprogrammer] Re: std::string alternative
- From: Dave Slutzkin
- [gameprogrammer] Re: std::string alternative
- From: Kevin Jenkins
- [gameprogrammer] Re: std::string alternative
- From: Dave Slutzkin
- [gameprogrammer] Re: std::string alternative
- From: Matthew Weigel
- [gameprogrammer] Re: std::string alternative
- From: David Olsen