Skip to content

Commit b04e4e1

Browse files
authored
Update README.md
1 parent 9715934 commit b04e4e1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ except := glinq.Except(set1, set2).ToSlice() // [1, 2]
114114

115115
- Go 1.18+ (for generics support)
116116

117+
## Comparison with Similar Libraries
118+
119+
| Feature | glinq | [samber/lo](https://github.com/samber/lo) | [thoas/go-funk](https://github.com/thoas/go-funk) |
120+
|---------|-------|-----------|----------|
121+
| **Evaluation** | Lazy (deferred) | Eager (immediate) | Eager (immediate) |
122+
| **API Style** | Fluent/Chainable | Functional | Functional |
123+
| **Type Safety** | Full (generics) | Full (generics) | Runtime (reflection) |
124+
| **Performance** | Single pass, no intermediate arrays | Creates intermediate arrays | Slower due to reflection |
125+
| **Memory Usage** | Minimal (lazy) | Higher (eager) | Higher (eager + reflection) |
126+
| **Extensibility** | Interface-based (Enumerable/Stream) | None | None |
127+
| **Dependencies** | Zero | Zero | Zero |
128+
117129
## Testing
118130

119131
```bash

0 commit comments

Comments
 (0)