bpo-36611: Disable serialno field of debug memory allocators by vstinner · Pull Request #12796 · python/cpython
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 34.2k
Conversation
Omit serialno field from debug hooks on Python memory allocators to reduce the memory footprint by 5%. Enable tracemalloc to get the traceback where a memory block has been allocated when a fatal memory error is logged to decide where to put a breakpoint. Compile Python with PYMEM_DEBUG_SERIALNO defined to get back the field.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters