Skip to content

Main.cpp #699

Description

@xx-del-xx

I have a complaint about main.cpp. Specifically, it has a lot of unnecessary code repetition in the switch statements that can easily be abstracted away (and likely even sped up!) if you know what you're doing.

For branchless programming, this is definitely a case where it could earn a non-negligible boost in time performance. Maybe it could be done with function array lookups?

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