You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i use the message's descriptor in golang,but i found the efficiency losing when call descriptor.ForMessage(xx).
I add the code in protoc-gen-go that can generate the descriptor of message when the program init,so the descritpor can be called from memory.the returns is the map structure(the key is the field name and the value is the pointer of the field descriptor)
The v1 descriptor package will be deprecated in the next release and there are no plans to optimize it. The replacement for it is native reflection built into messages. See #364
When i use the message's descriptor in golang,but i found the efficiency losing when call descriptor.ForMessage(xx).
I add the code in protoc-gen-go that can generate the descriptor of message when the program init,so the descritpor can be called from memory.the returns is the map structure(the key is the field name and the value is the pointer of the field descriptor)
the code that generated like this:
The text was updated successfully, but these errors were encountered: