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 <1616097819.13.0.281348169513.issue35056@roundup.psfhosted.org>
In-reply-to
Content
> _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 https://www.sqlite.org/c3ref/mem_methods.html

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