Protobuf map conversion #286
Janaka-Steph
started this conversation in
General
Replies: 1 comment 1 reply
-
Hey Stéphane, I assume you mean ECMAScript Map objects? They can be pretty nice, but don't seem to offer anything plain objects can't for protobuf. With the spread operator and very straight-forward literals, it appears that plain objects are actually a bit nicer to work with most of the time. If I remember correctly, there's also a performance penalty around maps vs object. So that's how we ended up with object instead of Map. BTW, the official js plugin uses its own Map implementation. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Any particular reason protobuf
map
is converted to an object rather than a JS Map, as it is the case with official js plugin?Beta Was this translation helpful? Give feedback.
All reactions