Skip to content

Use better Variant implementation #4

Description

@arBmind

The std::variant is prone to generate very bad code. Every interaction with the value can throw an exception if the variant is in an invalid state. This exception path basically kills the optimizer.

There are alternative variant implementations like basicpp17/variant17 that are much better at the cost of an required dependency.

Before using this implementation it this should be done.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions