Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-9489

python typehints: reduce the number of runtime-type-check wrappers

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • None
    • None
    • sdk-py-core

    Description

      The --runtime_type_check flag is considered to be a performance penalty.
      One of the possible slowdowns is the wrapper around DoFn.process(), which adds an extra call to the wrapped process() method.
      Currently, there are 2 wrappers applied: OutputCheckWrapperDoFn and TypeCheckWrapperDoFn. These could be merged into one to possibly save on overhead.

      Attachments

        Activity

          People

            Unassigned Unassigned
            udim Udi Meiri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: