faststringmap
trie
faststringmap | trie | |
---|---|---|
1 | 2 | |
60 | 107 | |
- | - | |
0.0 | 0.6 | |
over 1 year ago | about 1 year ago | |
Go | Go | |
MIT License | MIT License |
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.
faststringmap
-
Faster string keyed maps in Go
We were using Go map[string]int to validate the strings and obtain the index in the list. However the map lookups were consuming a lot of compute time. I wondered whether this could be significantly reduced. I looked around and didn't immediately find anything. So I came up with https://github.com/sensiblecodeio/faststringmap which gave us a 5x performance improvement on map lookups and a 25% reduction in overall CSV processing time.
trie
-
trie: A Trie implementation meant for auto-completion use cases
Yes. You can get the code for it in the demo directory.
What are some alternatives?
stringFormatter - A set of tools to manipulate text, i.e. making text from templates in C#/Python way is faster than fmt.Sprintf
go-succinct-data-structure-trie - Succinct Data Structure of Trie, written in Go
searchreader - Search single bytes.Reader with multiple strings.Readers with or without case sensitivity
trie - Generic prefix tree for golang
gptcli - An interactive ChatGPT client featuring shortcuts and auto-complete.
Muxie - Muxie is a modern, fast and light HTTP multiplexer for Go. Fully compatible with the http.Handler interface. Written for everyone.
art - Adaptive Radix Tree done right
gowww/router - ⚡️ A lightning fast HTTP router
data-structures - Go datastructures.
ptrie - A prefix tree implementation in go
gse - Go efficient multilingual NLP and text segmentation; support English, Chinese, Japanese and others.