[
https://issues.apache.org/jira/browse/BEAM-3388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16301971#comment-16301971
]
ASF GitHub Bot commented on BEAM-3388:
--------------------------------------
herohde opened a new pull request #4323: [BEAM-3388] Type-specialize custom
decoders and encoders in Go SDK runtime
URL: https://github.com/apache/beam/pull/4323
Removes the reflective overhead for custom encoders and decoders of certain
types. This is a "poor man's templates" approach.
Once #4289 is in, I'll change the element coding to not reinspect the coder
structure for each element. That will both speed things up and avoid memory
reallocations.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Reduce Go runtime reflective overhead
> -------------------------------------
>
> Key: BEAM-3388
> URL: https://issues.apache.org/jira/browse/BEAM-3388
> Project: Beam
> Issue Type: Improvement
> Components: sdk-go
> Reporter: Henning Rohde
> Assignee: Henning Rohde
>
> Go reflection is slow and we should avoid it in the Go SDK at runtime, when
> possible -- especially on the fast paths. It seems unlikely that the language
> runtime/libraries will improve any time soon:
> https://github.com/golang/go/issues/7818.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)