Skip to content

Make group order purely compile-time in exhaustive tests#807

Closed
sipa wants to merge 1 commit intobitcoin-core:masterfrom
sipa:202009_exhaustive_const_order
Closed

Make group order purely compile-time in exhaustive tests#807
sipa wants to merge 1 commit intobitcoin-core:masterfrom
sipa:202009_exhaustive_const_order

Conversation

@sipa
Copy link
Copy Markdown
Contributor

@sipa sipa commented Sep 4, 2020

The current exhaustive tests rely on an order that's known at compile time (EXHAUSTIVE_TEST_ORDER), but it is still passed down as a runtime variable order as well.

Make this consistent by replacing all order into EXHAUSTIVE_TEST_ORDER. This should help the compiler avoid actual modulus operations, though I don't see any speedup.

@sipa
Copy link
Copy Markdown
Contributor Author

sipa commented Sep 4, 2020

Ping @apoelstra.

@sipa
Copy link
Copy Markdown
Contributor Author

sipa commented Sep 6, 2020

Superseded by #808.

@sipa sipa closed this Sep 6, 2020
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.

1 participant