gen
gen is a generic general use Go functions library with the intention of replacing duplicated code where the same functionality is needed across multiple types, and provides a common interface for the functionality. The library is designed to be used in a wide variety of projects and is designed to be easy to use. (by devnw)
swiss
Golang port of Abseil's SwissTable (by dolthub)
gen | swiss | |
---|---|---|
1 | 3 | |
13 | 684 | |
- | 5.0% | |
7.0 | 3.7 | |
6 days ago | about 2 months ago | |
Go | Go | |
Apache License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gen
Posts with mentions or reviews of gen.
We have used some of these posts to build our list of alternatives
and similar projects.
swiss
Posts with mentions or reviews of swiss.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-17.
-
One Billion Row Challenge in Golang - From 95s to 1.96s
Time to deal with the large elephant in the room, the runtime.mapaccess2_fast64 map lookup. Despite spending some hours of research, I couldn't found any viable way to optimize the builtin map. However, there is a community alternative called Swiss Map, which sells itself as faster and more memory efficient than the builtin one. Replacing it is almost a drop-in, with just some syntax changes:
- Golang Port of Abseil's SwissTable
- SwissMap: A Golang Port of SwissTable
What are some alternatives?
When comparing gen and swiss you can also consider the following projects:
juniper - Juniper is an extension to the Go standard library using generics, including containers, iterators, and streams.
quadtree - Generic, zero-alloc, 100%-test covered Quadtree for golang
go-extlib - Go Extended Lib
golang-set - A simple, battle-tested and generic set type for the Go language. Trusted by Docker, 1Password, Ethereum and Hashicorp.
collection - Generic data structures in Go
algorithms - CLRS study. Codes are written with golang.
fo - An experimental language which adds functional programming features to Go.
std - An enhanced version of the standard library based the new Generics feature.
go-httpheader - A Go library for encoding structs into Header fields.