about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-03-21 16:00:08 -0700
committerbors <bors@rust-lang.org>2016-03-21 16:00:08 -0700
commit21922e1f48b263b39498cfeec79c1ca3f5886efe (patch)
tree091cf922ad764cc1bc19a2910b16d0abd82691e5 /src/rustllvm/ExecutionEngineWrapper.cpp
parent0168dc7c5904701983c280cb4fa0fb0c0fa692c5 (diff)
parente00cdd73456a3258e317bf68f8fa3a26c9922deb (diff)
downloadrust-21922e1f48b263b39498cfeec79c1ca3f5886efe.tar.gz
rust-21922e1f48b263b39498cfeec79c1ca3f5886efe.zip
Auto merge of #32062 - Marwes:unification_table_for_eq_relations, r=nikomatsakis
Improve time complexity of equality relations

This PR adds a `UnificationTable` to the `TypeVariableTable` type which is used store information about variable equality instead of just storing them in a vector for later processing. By using a `UnificationTable` equality relations can be resolved in O(n) (for all realistic values of n) rather than O(n!) which can give massive speedups in certain cases (see combine as an example).

Link to combine: https://github.com/Marwes/combine
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions