beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (BEAM-2166) Remove Coder.Context from the public API
Date Fri, 05 May 2017 23:06:04 GMT


ASF GitHub Bot commented on BEAM-2166:

GitHub user robertwb opened a pull request:

    [BEAM-2166] Remove context from size estimating operations.

    Be sure to do all of the following to help us incorporate your contribution
    quickly and easily:
     - [ ] Make sure the PR title is formatted like:
       `[BEAM-<Jira issue #>] Description of pull request`
     - [ ] Make sure tests pass via `mvn clean verify`.
     - [ ] Replace `<Jira issue #>` in the title with the actual Jira issue
           number, if there is one.
     - [ ] If this contribution is large, please file an Apache
           [Individual Contributor License Agreement](

You can merge this pull request into a Git repository by running:

    $ git pull coders-context-sizes

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2930
commit 1e36619bba7eb3e16078fb484961ebabc7331876
Author: Robert Bradshaw <>
Date:   2017-05-05T22:18:52Z

    Remove context from size estimate operations.

commit 7453171e4acb7e22505d172fcd790db599b33e54
Author: Robert Bradshaw <>
Date:   2017-05-05T22:23:03Z

    Remove uses of context in coder size estimation calls.
        find . -type f -name '*.java' | xargs sed -i '' 's/\([a-zA-Z]*[bB]yteSize[a-zA-Z]*[(].*\),
    plus a one-off Python script and some manual fixups.


> Remove Coder.Context from the public API
> ----------------------------------------
>                 Key: BEAM-2166
>                 URL:
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core, sdk-py
>    Affects Versions: First stable release
>            Reporter: Robert Bradshaw
>            Assignee: Robert Bradshaw
>             Fix For: First stable release
> Justification: 
> * Contexts add confusion and complexity to the public API (e.g.
> * Leaf (user-written) coders are nearly always nested.
> * Coders are being removed from sources, which was the initial need for context.
> * It is unclear how much value, if any, this provides for internal performance.
> * There may be performance (as well as simplification) gains in removing this for the
> Fully removing this distinction from the internals can be defered  until the last bullet
points are more completely investigated. 

This message was sent by Atlassian JIRA

View raw message