Skip to content

Review whether to Retire Binary Public Facing APIs. #445

Open

Description

@zzcgumn

Consumers are likely to have to convert from text formats such as PBN anyway and the performance gains are likely to be very small. Keeping the binary types public also restricts what refactoring we can do without creating a breaking change.

I do, however believe that there are exceptions such as generating a large number of deals for simulations when the deal generator might return data in a binary format. I think we should also investigate if splitting the public API into a high and low level can achieve what we want. The high-level API would have a minimum number of public types that are unlikely to change. The low-level API would then expose the full set of binary types together with functions that take binary types. It would also include the required converters.

Consumers of the high-level API should be able to update without changing any code. Consumers of the low-level API might have to update their code if data types change.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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