apache/beam

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

Aberta

#20.226 aberto em 4 de jun. de 2022

 (4 comentários) (0 reação) (0 responsável)Java (4.097 forks)batch import
P3bugcoregood first issuepythontypes

Métricas do repositório

Stars
 (7.313 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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. Original Jira may contain additional context. Reported by: udim.

Guia do colaborador