rust-lang / datafrog

A lightweight Datalog engine in Rust
Apache License 2.0
796 stars 43 forks source link

Improve performance of Relation::merge #2

Closed sapphire-arches closed 6 years ago

sapphire-arches commented 6 years ago

Instead of doing the easy thing and just doing a sort-dedup, we make the following optimizations:

This should improve performance of merging by ~20% in some cases

frankmcsherry commented 6 years ago

Looks good, thank you!