brimdata / zync

Kafka connector to sync Zed lakes to and from Kafka topics
BSD 3-Clause "New" or "Revised" License
17 stars 3 forks source link

connectjson: further improve decode performance #96

Closed nwt closed 1 year ago

nwt commented 1 year ago

Decoder.Decode always calls json.Unmarshal and Decoder.decodeSchema, both of which are expensive. Speed things up by calling them only if the Decoder hasn't seen the schema's JSON encoding before.