Skip to content

Waypoint::is_hidden #582

Closed as not planned
Closed as not planned

Description

@yakra

Consider converting Waypoint::is_hidden from a variable to a function.

Activity

  1. yakra commented on Apr 1, 2023

    @yakra
    ContributorAuthor

    #360 (comment)
    Keeping a separate bool allows continuing to hide hidden termini in the HB (in hopes of getting an error report in the forum) while preventing ERROR: segment name mismatch in HGEdge collapse constructor.

    More importantly, losing the bool won't make a Waypoint object any smaller, due to alignment requirements. There's an unsigned int right before it.

  2. yakra commented on Feb 26, 2024

    @yakra
    ContributorAuthor
    • ^ That unsigned int is point_num, and removing it is a no-brainer.
    • At first glance this might suggest nixing is_hidden to keep sizeof down, except...
    • Long-term plans include changing vertex from a pointer to a 32-bit array index. Due to alignment requirements, this gives us 4 more bytes to play around with.
    • In which case we may as well keep is_hidden.

    That last item being the case, leaving this issue closed.

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