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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user