realtime design

Brian Quinlan brian at sweetapp.com
Sun Oct 13 18:18:06 EDT 2002


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.

Cheers,
Brian





More information about the Python-list mailing list