Skip to content

forward_offset/reverse_offset - "short must suffice"? #1844

@systemed

Description

@systemed

edge_based_node.hpp has these comments:

int forward_offset;  // prefix sum of the weight up the edge TODO: short must suffice
int reverse_offset;  // prefix sum of the weight from the edge TODO: short must suffice

Is there any likely downside of changing forward_offset and reverse_offset from int to short throughout? If so, what would be the best way of mitigating this? (I could do with a few extra bytes in PhantomNode et al...)

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