msgspec icon indicating copy to clipboard operation
msgspec copied to clipboard

mypyc support

Open Chainfire opened this issue 8 months ago • 1 comments

Description

This was already raised in #194 , however I'm asking for it again. With later mypyc versions (at least on Python 3.12) the problem with msgpack.Struct's has changed to metaclass support. It may well be this can only be solved on the mypyc side of things, so I have also opened a FR there.

We're using mypyc to optimize code critical to performance. Our last bottleneck is data en/decode of network data. For the other code we've experimented with Nuitka, pure-Python-Cython, Cython-mixed-with-C++, and mypyc. mypyc comes very close to C++ performance for what we're doing and is much easier to deal with than the other options.

As both mypyc and msgspec focus on performance it would be nice if they would work together.

Chainfire avatar Mar 22 '25 06:03 Chainfire

+1 for this. I was also exploring in the past this option and wouldn't mind having this feature

jacopoabramo avatar Mar 24 '25 15:03 jacopoabramo