Usage of bools for sets
caldempsey opened this issue · 2 comments
caldempsey commented
Hi all.
I noticed you are using bools for your sets. Generally when creating sets in Golang, as far as I am familiar, it is more efficient to declare types of map[stirng]struct{}
to shave off the bytes used to implement Bool. I really have enjoyed some of the approaches used in this library and it helped me make some progress in creating map reduce semantics for my own types.
caldempsey commented
See https://github.com/golang-collections/collections/blob/master/set/set.go for some considerable idioms
logic-building commented
thank you for your comment. I will update the logic in future release.