[Python-Dev] Proposal to eliminate PySet_Fini (original) (raw)
Alexander Belopolsky alexander.belopolsky at gmail.com
Tue Jun 27 20:09:19 CEST 2006
- Previous message: [Python-Dev] School IIb?
- Next message: [Python-Dev] Proposal to eliminate PySet_Fini
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Setobject code allocates several internal objects on the heap that are cleaned up by the PySet_Fini function. This is a fine design choice, but it often makes debugging applications with embedded python more difficult.
I propose to eliminate the need for PySet_Fini as follows:
- Make dummy and emptyfrozenset static objects similar to Py_None
- Eliminate the free sets reuse scheme.
The second proposal is probably more controversial, but is there any real benefit from that scheme when pymalloc is enabled?
- Previous message: [Python-Dev] School IIb?
- Next message: [Python-Dev] Proposal to eliminate PySet_Fini
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]