Skip to content

Conversation

@zwarich
Copy link
Contributor

@zwarich zwarich commented Jun 13, 2025

This PR adds caching for the hasTrivialStructure? function for LCNF types. This is one of the hottest small functions in the new compiler, so adding a cache makes a lot of sense.

@zwarich zwarich requested a review from leodemoura as a code owner June 13, 2025 00:47
@zwarich zwarich added the changelog-compiler Compiler, runtime, and FFI label Jun 13, 2025
@zwarich zwarich enabled auto-merge June 13, 2025 00:47
@zwarich zwarich added this pull request to the merge queue Jun 13, 2025
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jun 13, 2025
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 4694aaad02fe227adbcd1ebef379b803576ecbe6 --onto faffe863343211d03d07d4ef19d90a2aa9d6fc8c. You can force Mathlib CI using the force-mathlib-ci label. (2025-06-13 01:19:22)

Merged via the queue into leanprover:master with commit 3aa479f Jun 13, 2025
19 checks passed
algebraic-dev pushed a commit to algebraic-dev/lean4 that referenced this pull request Jun 18, 2025
This PR adds caching for the `hasTrivialStructure?` function for LCNF
types. This is one of the hottest small functions in the new compiler,
so adding a cache makes a lot of sense.
wkrozowski pushed a commit to wkrozowski/lean4 that referenced this pull request Jun 24, 2025
This PR adds caching for the `hasTrivialStructure?` function for LCNF
types. This is one of the hottest small functions in the new compiler,
so adding a cache makes a lot of sense.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-compiler Compiler, runtime, and FFI toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants