[#317] api: Revert easyproto marshaler usage

It has caused a noticeable degradation in node.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-12-26 10:03:55 +03:00
parent bab4d5a692
commit 328d214d2d
Signed by: fyrchik
SSH key fingerprint: SHA256:m/TTwCzjnRkXgnzEx9X92ccxy1CcVeinOgDb3NPWWmg
110 changed files with 47773 additions and 37555 deletions

View file

@ -14,12 +14,10 @@ func (t Type) String() string {
//
// Returns true if s was parsed successfully.
func (t *Type) FromString(s string) bool {
var g object.ObjectType
ok := g.FromString(s)
g, ok := object.ObjectType_value[s]
if ok {
*t = TypeFromGRPCField(g)
*t = TypeFromGRPCField(object.ObjectType(g))
}
return ok
@ -43,12 +41,10 @@ func (t MatchType) String() string {
//
// Returns true if s was parsed successfully.
func (t *MatchType) FromString(s string) bool {
var g object.MatchType
ok := g.FromString(s)
g, ok := object.MatchType_value[s]
if ok {
*t = MatchTypeFromGRPCField(g)
*t = MatchTypeFromGRPCField(object.MatchType(g))
}
return ok