Skip to content

improve edge weight generation - #102

Merged
mschimek merged 3 commits into
mainfrom
performance/improve-uniform-random-edge-weight-generation
Aug 21, 2026
Merged

mschimek merged 3 commits into
mainfrom
performance/improve-uniform-random-edge-weight-generation

Conversation

@mschimek

@mschimek mschimek commented Aug 14, 2026 •

Copy link
Copy Markdown
Member

improve performance of uniform-random edgeweights generation

@mschimek
mschimek requested a review from niklas-uhl August 21, 2026 08:31
@mschimek
mschimek force-pushed the performance/improve-uniform-random-edge-weight-generation branch from 8846b71 to 14b4d57 Compare August 21, 2026 08:33

@niklas-uhl niklas-uhl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, apart from the missing code comment

Comment on lines +46 to +48
bool is_canonically_ordered(SInt u, SInt v) {
return ((u ^ v) & 1u) == 0 ? u < v : u > v;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should definitely have a comment explaining what that does

@mschimek
mschimek merged commit ba2d160 into main Aug 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants