exit(3)ing is faster

Jul 27, 2005 11:39


Say you're at the end of your program. All the work is done and you want to quit. But say that you’ve got some big objects laying around. If all you have to do in your destructors is de-allocate memory, I’ve re-discovered that you can avoid having your objects destroyed by calling exit(3) rather than returning from main. This really helped in my ( Read more... )

Leave a comment

Comments 3

(The comment has been removed)

quikchange July 28 2005, 00:45:24 UTC
Precisely. By omitting unnecessary cleanup, it can finish faster.

Reply


duh! canoe_drew July 28 2005, 14:43:30 UTC
Just don't try it in win98!

Reply

Re: duh! kinthelt July 29 2005, 14:34:26 UTC
No kidding!

Reply


Leave a comment

Up