Jump to content
  • Advertisement
Sign in to follow this  
Emanuele Russo

Resize Stack Memory drawbacks

This topic is 3557 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I have to optimize a program for performance and memory occupation. At the moment the stack commit size is set to 32KB and the reserve size to 16 MB, instead of the default 4 K and 1 M. Could someone explain me what can be the pros and the drawbacks of a similar choice? This program is multithread, and at runtime it uses around 10 thread in concurrence. Increasing these sizes makes the program faster? Thanks Emanuele

Share this post


Link to post
Share on other sites
Advertisement
Not really changing the size of the stack changes how much memory you reserve for stack space(Only important if you make a large number of function calls or allocate a lot of memory on the stack.) It is more of a pass fail number either your app runs or it runs out of stack space and crashes.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!