- Notifications
You must be signed in to change notification settings - Fork676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Do not call recursively self on subterm strategy.#20338
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
I do not know why this was done this way, in practice it probably does notmatter insofar as virtually all calls to subterm are wrapped in a fixpoint.
@coqbot bench |
🏁 Bench results:
INFO: failed to install 🐢 Top 25 slow downs┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐│ TOP 25 SLOW DOWNS ││ ││ OLD NEW DIFF %DIFF Ln FILE │├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤│ 23.0 26.5 3.4326 14.91% 129coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/Projective.v.html ││ 99.3 101 1.5888 1.60% 999coq-performance-tests-lite/src/fiat_crypto_via_setoid_rewrite_standalone.v.html ││ 99.6 101 1.2226 1.23% 968coq-performance-tests-lite/src/fiat_crypto_via_setoid_rewrite_standalone.v.html ││ 199 200 1.0857 0.54% 8coq-neural-net-interp-computed-lite/theories/MaxOfTwoNumbersSimpler/Computed/AllLogits.v.html ││ 65.3 66.2 0.8972 1.37% 609coq-fiat-crypto-with-bedrock/rupicola/bedrock2/bedrock2/src/bedrock2Examples/lightbulb.v.html ││ 55.6 56.3 0.7039 1.27% 731coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/JacobianCoZ.v.html ││ 17.8 18.4 0.5655 3.17% 32coq-performance-tests-lite/src/pattern.v.html ││ 36.8 37.2 0.4602 1.25% 2coq-fiat-crypto-with-bedrock/src/ExtractionJsOfOCaml/fiat_crypto.v.html ││ 32.1 32.5 0.4471 1.39% 12coq-fourcolor/theories/proof/job439to465.v.html ││ 59.7 60.2 0.4247 0.71% 27coq-fiat-crypto-with-bedrock/src/Rewriter/Passes/ToFancyWithCasts.v.html ││ 31.933 32.348 0.4150 1.30% 97coq-vst/veric/binop_lemmas5.v.html ││ 24.1 24.5 0.3947 1.64% 12coq-fourcolor/theories/proof/job503to506.v.html ││ 20.9 21.3 0.3840 1.84% 213coq-fiat-crypto-with-bedrock/src/Curves/EdwardsMontgomery.v.html ││ 21.0 21.4 0.3734 1.78% 6coq-fiat-crypto-with-bedrock/rupicola/bedrock2/deps/riscv-coq/src/riscv/Proofs/DecodeEncodeI.v.html ││ 78.3 78.7 0.3727 0.48% 48coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/AffineProofs.v.html ││ 35.0 35.4 0.3613 1.03% 120coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/ExponentialEqs.v.html ││ 23.6 23.9 0.3536 1.50% 12coq-fourcolor/theories/proof/job486to489.v.html ││ 28.1 28.5 0.3503 1.25% 12coq-fourcolor/theories/proof/job563to588.v.html ││ 30.0 30.4 0.3410 1.14% 607coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/JacobianCoZ.v.html ││ 24.7 25.1 0.3376 1.37% 12coq-fourcolor/theories/proof/job299to302.v.html ││ 24.2 24.5 0.3329 1.38% 12coq-fourcolor/theories/proof/job319to322.v.html ││ 26.3 26.6 0.3305 1.26% 12coq-fourcolor/theories/proof/job531to534.v.html ││ 24.6 25.0 0.3257 1.32% 12coq-fourcolor/theories/proof/job517to530.v.html ││ 30.4 30.7 0.3200 1.05% 12coq-fourcolor/theories/proof/job254to270.v.html ││ 25.2 25.5 0.3180 1.26% 12coq-fourcolor/theories/proof/job466to485.v.html │└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ 🐇 Top 25 speed ups┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐│ TOP 25 SPEED UPS ││ ││ OLD NEW DIFF %DIFF Ln FILE │├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤│ 174 173 -1.3033 -0.75% 233coq-fiat-crypto-with-bedrock/rupicola/bedrock2/deps/riscv-coq/src/riscv/Proofs/DecodeByExtension.v.html ││ 29.6 28.7 -0.8845 -2.99% 146coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/GarageDoorTop.v.html ││ 27.8 26.9 -0.8795 -3.17% 149coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/GarageDoorTop.v.html ││ 27.2 26.5 -0.7331 -2.69% 68coq-fiat-crypto-with-bedrock/rupicola/bedrock2/deps/riscv-coq/src/riscv/Proofs/VerifyDecode.v.html ││ 21.9 21.3 -0.6116 -2.80% 49coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/AffineProofs.v.html ││ 15.0 14.4 -0.6032 -4.03% 841coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/Jacobian/CoZ.v.html ││ 236 236 -0.5950 -0.25% 141coq-fiat-crypto-with-bedrock/src/UnsaturatedSolinasHeuristics/Tests.v.html ││ 11.9 11.4 -0.4592 -3.86% 812coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/GarageDoor.v.html ││ 9.69 9.29 -0.3940 -4.07% 434coq-mathcomp-odd-order/theories/PFsection12.v.html ││ 7.76 7.45 -0.3144 -4.05% 446coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/GarageDoor.v.html ││ 133 133 -0.2926 -0.22% 155coq-fiat-crypto-with-bedrock/src/UnsaturatedSolinasHeuristics/Tests.v.html ││ 8.06 7.78 -0.2771 -3.44% 822coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/GarageDoor.v.html ││ 19.0 18.8 -0.2734 -1.44% 481coq-verdi-raft/theories/RaftProofs/EndToEndLinearizability.v.html ││ 13.1 12.8 -0.2673 -2.04% 931coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/GarageDoor.v.html ││ 23.0 22.7 -0.2630 -1.15% 373coq-fiat-crypto-with-bedrock/src/Bedrock/Secp256k1/Addchain.v.html ││ 10.1 9.80 -0.2558 -2.54% 325coq-engine-bench-lite/coq/PerformanceDemos/one_step_reduction.v.html ││ 9.47 9.24 -0.2381 -2.51% 345coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/EdwardsXYZT.v.html ││ 6.20 5.97 -0.2343 -3.78% 792coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/GarageDoor.v.html ││ 5.83 5.60 -0.2337 -4.01% 130coq-category-theory/Functor/Strong/Product.v.html ││ 1.66 1.43 -0.2279 -13.71% 1375coq-unimath/UniMath/CategoryTheory/Hyperdoctrines/PartialEqRels/PERSubobjectClassifier.v.html ││ 39.0 38.7 -0.2244 -0.58% 835coq-fiat-crypto-with-bedrock/src/Fancy/Compiler.v.html ││ 7.65 7.45 -0.2034 -2.66% 420coq-engine-bench-lite/coq/PerformanceDemos/one_step_reduction.v.html ││ 10.2 9.96 -0.2029 -2.00% 214coq-engine-bench-lite/coq/PerformanceDemos/one_step_reduction.v.html ││ 2.42 2.23 -0.1972 -8.14% 620coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/Jacobian/CoZ.v.html ││ 45.3 45.1 -0.1954 -0.43% 110coq-fiat-crypto-with-bedrock/rupicola/bedrock2/bedrock2/src/bedrock2Examples/full_mul.v.html │└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ |
SkySkimmer approved these changesMar 20, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
@mattam82 says this seems correct
@coqbot merge now |
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I do not know why this was done this way, in practice it probably does not matter insofar as virtually all calls to subterm are wrapped in a fixpoint.