Closed TheRealMcoy closed 7 months ago
I have similar situation, but my test case is a bit different:
from msgpack import Unpacker, packb
unpacker = Unpacker()
network_packet = packb(None)
for i in range(2000000):
unpacker.feed(network_packet)
for unpacked in unpacker:
pass
@TheRealMcoy @senyai do you use macOS?
Sorry, OS is not related.
https://github.com/cython/cython/issues/5724 caused it. Until I make mew release, manually run Cython locally will fix it.
@methane recompiling with new cython fixed it for me, much appreciated.
@methane the latest 1.0.8 has resolved the memory leak, many thanks!
This library appears to leak memory in Unpacker method under Python 3.12.1
reproducer script:
Python 3.11.7 after 10 minute run:
Python 3.12.1 after 10 minute run: