News for hackers. Stuff that matters.
Re:Pyrobuf: A Cython Alternative to Google's Python Protobuf... by fijal on Sunday December 20, 2015 @09:46AM (#10767147)
Hi

The python code that's generated is ok, but the problem is that everything is very dynamic. If you want this to work fast on PyPy, it should really generate a bunch of getters and setters that use attribute access and not go through generic __getattr__ that does some dictionary lookups. Additionally a lot of code is written in a way that creates a lot of temporary lists iterating over all fields and double checking stuff - this is bound to be way slower than a simple C/Java stuff that does the very simplest "check type - attribute access" sort of stuff.

There are no comments on this comment yet.