capnproto / pycapnp

Cap'n Proto serialization/RPC system - Python bindings
BSD 2-Clause "Simplified" License
459 stars 124 forks source link

Pure-Python version #290

Open tyteen4a03 opened 2 years ago

tyteen4a03 commented 2 years ago

Due to limitations I won't go into, I can't use any C extensions at my project. Is there a fallback version that is pure Python?

haata commented 2 years ago

Unfortunately no.

This would be a huge project (and likely fall flat on the performance side).

kentonv commented 2 years ago

FWIW I suspect a pure-Python implementation of the serialization layer could perform better than the C extension version, since the FFI cost is probably dominating the actual implementation cost. But it would indeed be a huge project.