Author erlendaasland
Recipients erlendaasland, serhiy.storchaka, vstinner, xiang.zhang
Date 2021-03-18.20:03:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> _sqlite: call sqlite3_config(SQLITE_CONFIG_MALLOC, pMem) to use PyMem_RawMalloc()

SQLite requires the xSize member of sqlite3_mem_methods to be implemented for this to work, so we'd have to implement msize(). The msize() idea seems to have been rejected in PEP 445, though it mentions using debug hooks to implement it.

See also

Anyway, attached is a PoC patch with a fixed 10k mem pool for the sqlite3 module :)
Date User Action Args
2021-03-18 20:03:39erlendaaslandsetrecipients: + erlendaasland, vstinner, serhiy.storchaka, xiang.zhang
2021-03-18 20:03:39erlendaaslandsetmessageid: <>
2021-03-18 20:03:39erlendaaslandlinkissue35056 messages
2021-03-18 20:03:38erlendaaslandcreate