diff options
| author | Jason Gross | 2021-03-26 09:28:34 -0400 |
|---|---|---|
| committer | Jason Gross | 2021-03-26 09:28:34 -0400 |
| commit | 7e5dc9f830bc2cdbc3b8cc8b830adafc61660055 (patch) | |
| tree | cb808361d3109570b8d40b042a9e9a12fd053877 /kernel/cooking.ml | |
| parent | 71453f1643b55679d44caee30ce5541b5aa47263 (diff) | |
Fix Ltac2 `Array.init` exponential overhead
Previously, `Array.init` was computing the first element of the array
twice, resulting in exponential overhead in the number of recursive
nestings of `Array.init`. Notably, since `Array.map` is implemented in
terms of `Array.init`, this exponential blowup shows up in any term
traversal based on `Array.map` over the arguments of application nodes.
Fixes #14011
Diffstat (limited to 'kernel/cooking.ml')
0 files changed, 0 insertions, 0 deletions
