ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-dev
python-dev
Re: [Python-Dev] When do sets shrink?
by Fredrik Lundh other posts by this author
Dec 29 2005 3:55AM messages near this date
Re: [Python-Dev] When do sets shrink? | Re: [Python-Dev] When do sets shrink?
Martin v. L�wis wrote:

>  Adal Chiriliuc wrote:
>  > MSVC 7.1 and 8.0 malloc always uses the Windows heap functions
>  > (HeapAlloc & friends) if running on Windows 2000 or newer
>  > (malloc.c and heapinit.c).
>  >
>  > So it seems that for both Linux (gcc) and Win (msvc) the memory is
>  > released to the operating system.
> 
>  How so? HeapFree does not return the memory to the system. From
> 
>  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/memory/base/heap_function
s.asp
> 
>  "Once the pages are committed, they are not decommitted until the
>  process is terminated or until the heap is destroyed by calling the
>  HeapDestroy function."

http://www.python.org/sf/1389051 agrees with the microsoft
documentation.  (where imaplib runs out of memory after read-
ing 2 megabytes of a 14 megabyte message).

</F> 
Attachments:
unknown1
unknown2

Thread:
Noam Raphael
Noam Raphael
Fernando Perez
Raymond Hettinger
Raymond Hettinger
Noam Raphael
Tim Peters
Josiah Carlson
Raymond Hettinger
"Martin v. Löwis"
Fredrik Lundh
Noam Raphael
Josiah Carlson
Donovan Baarda
Fredrik Lundh
Noam Raphael
"Martin v. Löwis"
Adal Chiriliuc
1
Adal Chiriliuc
Raymond Hettinger
Donovan Baarda
Noam Raphael
Guido van Rossum
Noam Raphael
Josiah Carlson
"Martin v. Löwis"
Noam Raphael

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved