Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: remove
@[specialize]
from mkBinding (#6019)
This PR removes @[specilize] from `MkBinding.mkBinding`, which is a function that cannot be specialized (as none of its arguments are functions). As a result, the specializable function `Nat.foldRevM.loop` doesn't get specialized, which leads to worse performing code. As expected, the mathlib bench shows a very small improvement. About 95% of files show a speedup. (http://speed.lean-fro.org/mathlib4/compare/e7b27246-a3e6-496a-b552-ff4b45c7236e/to/6033df75-aa53-44d9-819d-51f93fc05e94?hash1=b28f0d7f7e9cc3949a9a3556a6b36513f37f690d)
- Loading branch information