Skip to content

Releases: api7/lua-resty-radixtree

v2.4

22 Oct 02:54
b725eeb
Compare
Choose a tag to compare
bugfix: cached hit "path" when enabled prefix matching and `matched` …

v2.3

17 Sep 06:33
7e279b0
Compare
Choose a tag to compare
perf: make inserting host match route several times faster (#62)

Previously, `insert_route` will sort the table with `table.sort`.
The `table.sort` is implemented via quick-sort, which is in O(nlogn)
complexity and perform worse when the table is already mostly sorted.

Since we can ensure the table is sorted before inserting, we can
implement a naive insert sort in O(n) complexity to replace `table.sort`.

Via `time resty -I=./lib -I=./deps/share/lua/5.1 benchmark/match-hosts.lua`
I see an impressive time reduction with this optimization.

v2.2

14 Aug 12:27
09d07bf
Compare
Choose a tag to compare
bugfix: return false if not matched the fully request URI. (#52)

v2.1

06 Aug 11:07
904799f
Compare
Choose a tag to compare
feat: support `in` operator when do route matching (#48)

fix #47 #30

v2.0

28 Jun 09:02
Compare
Choose a tag to compare
keep original LICENSE .

v1.9

28 Jun 08:15
Compare
Choose a tag to compare
keep original license.

v1.8

28 Jun 07:55
Compare
Choose a tag to compare
release new version v1.7 .

v1.4

10 Oct 06:33
7f2fde0
Compare
Choose a tag to compare
optimize: cache reversed `host` string. (#21)