zclconf / go-cty

A type system for dynamic values in Go applications
MIT License
338 stars 70 forks source link

[wip] function/stdlib: improve complexity of distinct #159

Open freedge opened 1 year ago

freedge commented 1 year ago

change the current quadratic implementation of distinct by leveraging the hash() method.

this is a proof of concept in order to fix https://github.com/hashicorp/terraform/issues/32937