Skip to content

Tune Pos #22

@julianhyde

Description

@julianhyde

The Pos class could be made a bit more efficient. In particular, the sum(Iterable<Pos>) method converts the positions to a list. It should instead create a Pos.Builder and iterate over the positions; no need to create a list.

Probably other methods would benefit from the same approach.

As part of this task, write tests for the methods affected, and check that behavior is the same before and after.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions