router
go-patricia
Our great sponsors
router | go-patricia | |
---|---|---|
3 | 1 | |
433 | 271 | |
3.5% | - | |
6.3 | 0.0 | |
about 2 months ago | over 1 year ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" 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.
router
-
Piko router, a lightweight and blazing fast router for PHP
I found libraries in other programming languages that use this approach : matchit (Rust), find-my-way (Javascript), fasthttp (Go) But, curiously, no one in PHP. That's why I decided to bring my contribution to have the same approach in PHP.
-
Go and Trie!
You can dive deeper if you wish.
-
Have you used a trie in Go?
https://github.com/fasthttp/router for example
go-patricia
-
Extra speed for youtube.
For something like subtracting a list of IP addresses from another, I use https://github.com/tchap/go-patricia.
What are some alternatives?
routing - Maps an HTTP request to a set of configuration variables
patricia - Garbage collector-sensitive patricia tree for IP/CIDR tagging
matchit - A high performance, zero-copy URL router.
art - An Adaptive Radix Tree (ART) implementation in Go
gods - GoDS (Go Data Structures) - Sets, Lists, Stacks, Maps, Trees, Queues, and much more
go-fasttld - go-fasttld is a high performance effective top level domains (eTLD) extraction module.
freerouting - Advanced PCB auto-router
gowww/router - ⚡️ A lightning fast HTTP router
router - A lightweight and fast router for PHP
Fast Route - Fast request router for PHP
gotrie - A golang reader for a in-house, modified stevehanov's succinct trie implementation (http://stevehanov.ca/blog/?id=120) serialized to uint16 instead of base64.
hatrie_cache - Distributed memcache using HAT-Trie