apache/beam

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

开放

#20,226 创建于 2022年6月4日

 (4 条评论) (0 个反应) (0 位负责人)Java (4,097 个派生)batch import
P3bugcoregood first issuepythontypes

仓库指标

星标
 (7,313 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南