python typehints: reduce the number of runtime-type-check wrappers
Open
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
Assessment
This issue has not been assessed yet.