Skip to content

refactor(clp-s): Simplify OutputHandler interface. #2519

Description

@gibber9809

Request

Right now the OutputHandler interface has two different flavours of write interface:

  • write(message); and
  • write(message, bunch_of_metdata)

Guarded by the should_output_metadata function.

As discussed here, the write(message) interface is making our code more complicated, and likely doesn't have much if any performance benefit.

Pending some benchmarking to confirm that there isn't any meaningful performance difference, we should remove the write(message) interface as well as should_output_metadata.

Possible implementation

Simply delete the method from the interface as well as all derived classes, and remove all branches based on should_output_metadata.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions