You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2020/08/10 18:21:42 UTC

[GitHub] [beam] robertwb commented on pull request #12352: [BEAM-10549] Improve runtime type checking performance for the Python SDK

robertwb commented on pull request #12352:
URL: https://github.com/apache/beam/pull/12352#issuecomment-671512461


   > > As discussed in person, let's push the construction of a `{source_str: TypeConstraint}` all the way up to the visitor.
   > 
   > Just pushed these changes - PTAL
   > 
   > I kept `get_perf_runtime_type_hints` because it's merely responsible for unpickling the function to get the constructed type hints dict
   
   The problem with this function is that it's called on all sorts of operations, even those without type constraints, when it applies to only one kind of operation. This pattern (and the heavy use of hasattr) suggests it'd be better to make this a method on Operation, say with default of return None. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org