File tree 2 files changed +9
-3
lines changed
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
59
59
dimensions.
60
60
61
61
#### 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 ) .
65
67
66
68
#### Threadsafe
67
69
A 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
19
19
is threadsafe which decreases performance.
20
20
21
21
TODO: 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.
22
26
*/
23
27
24
28
package set
You can’t perform that action at this time.
0 commit comments