[Python-Dev] gc ideas -- sparse memory (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sun Dec 5 23:29:27 CET 2010
- Previous message: [Python-Dev] gc ideas -- sparse memory
- Next message: [Python-Dev] gc ideas -- sparse memory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin v. Löwis wrote:
The hole C API would break if objects would move in memory. Since they have to stay at fixed addresses, it's easy enough to use the address as ID.
Yes. Some of the discussion here seems to be assuming that the reason Python doesn't move objects is so that it can use the address as a unique ID. But it's the other way around.
-- Greg
- Previous message: [Python-Dev] gc ideas -- sparse memory
- Next message: [Python-Dev] gc ideas -- sparse memory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]