You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "JonathanHopeDMRC (via GitHub)" <gi...@apache.org> on 2025/04/21 17:01:50 UTC

[I] [Bug]: Registering DoFns and CombineFns Seems Excessively Slow [beam]

JonathanHopeDMRC opened a new issue, #34693:
URL: https://github.com/apache/beam/issues/34693

   ### What happened?
   
   **SDK Version:** `2.63`
   **SDK Language:** `Go`
   
   While there is no doubt some cost to registering `DoFns` and `CombineFns` with Beam, as it stands the cost right now seems excessively high. I am working on a pipeline that currently has around 30 `DoFns`. I've been noticing the builds taking a very long time for a while so I spent some time debugging them. I noticed that it was the calls to `beam.Register*` and `register.*` that were slowing down the builds. To illustrate this I moved all of those calls to separate package and used `actiongraph` to measure the time those calls were taking relative to everything else:
   
   ```
   ❯ actiongraph -f /tmp/actiongraph6 top             
   263.156s  58.50%  build pcmig/pkg/start
    26.691s  64.43%  link  pcmig/cmd/batch
    15.179s  67.81%  build github.com/apache/beam/sdks/v2/go/pkg/beam/io/fileio
   ```
   
   As you can see those calls are 10x slower than the next slowest thing. It's possible that this is expected behavior, but I wanted to raise the issue just in case.
   
   ### Issue Priority
   
   Priority: 2 (default / most bugs should be filed as P2)
   
   ### Issue Components
   
   - [ ] Component: Python SDK
   - [ ] Component: Java SDK
   - [x] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Infrastructure
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Registering DoFns and CombineFns Seems Excessively Slow [beam]

Posted by "chamikaramj (via GitHub)" <gi...@apache.org>.
chamikaramj commented on issue #34693:
URL: https://github.com/apache/beam/issues/34693#issuecomment-2819080319

   cc: @damccorm @jrmccluskey 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Registering DoFns and CombineFns Seems Excessively Slow [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #34693:
URL: https://github.com/apache/beam/issues/34693#issuecomment-3312068033

   This issue has been marked as stale due to 150 days of inactivity. It will be closed in 30 days if no further activity occurs. If you think that’s incorrect or this issue still needs to be addressed, please simply write any comment. If closed, you can reopen the issue at any time. Thank you for your contributions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Registering DoFns and CombineFns Seems Excessively Slow [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #34693: [Bug]: Registering DoFns and CombineFns Seems Excessively Slow
URL: https://github.com/apache/beam/issues/34693


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Registering DoFns and CombineFns Seems Excessively Slow [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #34693:
URL: https://github.com/apache/beam/issues/34693#issuecomment-3421917767

   This issue has been closed due to lack of activity. If you think that is incorrect, you can reopen the issue at any time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Registering DoFns and CombineFns Seems Excessively Slow [beam]

Posted by "chamikaramj (via GitHub)" <gi...@apache.org>.
chamikaramj commented on issue #34693:
URL: https://github.com/apache/beam/issues/34693#issuecomment-2819080765

   (seems like a Go SDK issue not a YAML issue)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org