realtime design

Chris Liechti cliechti at
Mon Oct 14 01:12:58 CEST 2002

Brian Quinlan <brian at> wrote in 
news:mailman.1034547438.2696.python-list at

> Richard Jones wrote:
>> > But the variable timing of memory allocation/deallocation might be
>> > unacceptable.
>> What do you mean by variable timing? If you avoid circular references,
>> CPython 
>> (the C version, not the Java version) has deterministic memory
> handling.
> CPython uses malloc/free to allocate/deallocate Python objects. The
> malloc routine must search a free list for a memory block of sufficient
> size. So the timing of trivial Python operations can vary significantly,
> depending on the malloc implementation and the history of previous
> memory allocations/deallocations.

ok, sure. but i want to make clear that has nothing to do with Python 
suitability for real time applications if the underlying OS causes the 
troubles. if the underlying memory management is that bad, even the 
smallest programm in C suffers from the same problem.

Chris <cliechti at>

More information about the Python-list mailing list