apache / apache/beam

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

Open
#20,226 4 comments 0 reactions 0 assignees View on GitHub
bug core good first issue P3 python types
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

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.

Imported from Jira [BEAM-9489](https://issues.apache.org/jira/browse/BEAM-9489). Original Jira may contain additional context.
Reported by: udim.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.