It is currently Sun May 26, 2013 4:45 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: PureBasic process end behaviour question (Fred? Freak?)
PostPosted: Sun Jan 15, 2012 7:16 am 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2005 5:05 pm
Posts: 1693
Location: Norway
Fred, is the cleanup code of PureBasic optimized?
By that I mean, does it actually call memory freeing functions or just leave them?
I know that MicroSoft actually advices to not free memory at process end as that could cause the system to start pulling pages into memory from disk rather than just mark them as free.
There are a few things that must be freeded though (but MSDN should point that out in those cases), but a lot of things can surprisingly enough be just left alone, like memory allocation.

During a program run FreeMemory() should obviously free the memory.
But at program end FreeMemory() could just be a NOP actually and system performance would improve actually, OS restart/shutdown would also be sped up.
I read a article on this, but I can't find the damn thing again now obviously, sorry...

Ooh hang on here they are (phew):
http://blogs.msdn.com/b/oldnewthing/arc ... 53268.aspx
http://blogs.msdn.com/b/oldnewthing/arc ... 83346.aspx

Does PureBasic take advantage of this Windows behavior to speed up process end/exit?

_________________
Image website, journal, projects, reviews and more.
Normality exist in the minds of others, not mine! - Rescator


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Exabot [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye