apache/beam
在 GitHub 查看python typehints: reduce the number of runtime-type-check wrappers
Open
#20,226 建立於 2022年6月4日
P3bugcoregood first issuepythontypes
倉庫指標
- Star
- (7,313 star)
- PR 合併指標
- (平均合併 6天) (30 天內合併 243 個 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.