Message389039
> _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 :) |
|
Date |
User |
Action |
Args |
2021-03-18 20:03:39 | erlendaasland | set | recipients:
+ erlendaasland, vstinner, serhiy.storchaka, xiang.zhang |
2021-03-18 20:03:39 | erlendaasland | set | messageid: <1616097819.13.0.281348169513.issue35056@roundup.psfhosted.org> |
2021-03-18 20:03:39 | erlendaasland | link | issue35056 messages |
2021-03-18 20:03:38 | erlendaasland | create | |
|