Re: [protobuf] Modeling a python dictionary (experimental_map_key etc.)

2010-02-22 Thread Kenton Varda
Protobufs do not contain any explicit support for maps/dictionaries. Sorry. experimental_map_key was added at one point by someone who was considering adding such support but as yet it hasn't happened. Normally people represent maps in protocol buffers by using repeated key/value pairs. On Sun,

[protobuf] Modeling a python dictionary (experimental_map_key etc.)

2010-02-22 Thread peterk
Hello, I've been experimenting with protocol buffers on appengine, using 2.3.0. I am trying to basically find the fastest way to serialize a dictionary, and would like to see if protobuf can improve on performance I'm seeing with other methods (pickle - ick, simplejson - better, repr - best so far