lang: Add unification optimizations

This adds a unification optimizations API, and uses it to optimize the
embedded provisioner. With these turned on, type unification drops from
around 1m45s to 2.5s which is a 40x speedup.
This commit is contained in:
James Shubin
2024-03-30 18:05:16 -04:00
parent ddf1be653e
commit 1b00af6926
6 changed files with 91 additions and 4 deletions

View File

@@ -45,6 +45,11 @@ const (
// StrategyNameKey is the string key used when choosing a solver name.
StrategyNameKey = "name"
// StrategyOptimizationsKey is the string key used to tell the solver
// about the specific optimizations you'd like to request. The format
// can be specific to each solver.
StrategyOptimizationsKey = "optimizations"
)
// Init contains some handles that are used to initialize every solver. Each