• Julien Muchembled's avatar
    protocol: switch to msgpack for packet serialization · ea534b05
    Julien Muchembled authored
    Not only for performance reasons (which is significant in the case of
    replication; tools/matrix is ~3% faster) but also because of several ugly
    things in the way packets were defined:
    - packet field names, which are only documentary; for roots fields,
      they even just duplicate the packet names
    - a lot of repetitions for packet names, and even confusion between the name
      of the packet definition and the name of the actual notify/request packet
    - the need to implement field types for anything, like PByte to support new
      compression formats, since PBoolean is not enough
    
    neo/lib/protocol.py is now much smaller.
    ea534b05
app.py 43.8 KB