File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,11 @@ Inserts are typical BBST times at O(log n^d) where d is the number of
5959dimensions.
6060
6161#### Set
62- Self explanatory. Could be further optimized by getting the uintptr of the
63- generic interface{} used and using that as the key as Golang maps handle that
64- much better than the generic struct type.
62+ Our Set implementation is very simple, accepts items of type ` interface{} ` and
63+ includes only a few methods. If your application requires a richer Set
64+ implementation over lists of type ` sort.Interface ` , see
65+ [ xtgo/set] ( https://github.com/xtgo/set ) and
66+ [ goware/set] ( https://github.com/goware/set ) .
6567
6668#### Threadsafe
6769A package that is meant to contain some commonly used items but in a threadsafe
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ Package set is a simple unordered set implemented with a map. This set
1919is threadsafe which decreases performance.
2020
2121TODO: Actually write custom hashmap using the hash/fnv hasher.
22+
23+ TODO: Our Set implementation Could be further optimized by getting the uintptr
24+ of the generic interface{} used and using that as the key; Golang maps handle
25+ uintptr much better than the generic interace{} key.
2226*/
2327
2428package set
You can’t perform that action at this time.
0 commit comments