Tagged articles
5 articles
Page 1 of 1
ELab Team
ELab Team
Nov 11, 2022 · Backend Development

Boost Node.js Routing Performance with Trie Prefix Trees

This article explains how to implement an efficient routing system for Node.js web frameworks using a Trie (prefix tree) data structure, covering static, dynamic, and regex route matching, code examples, performance considerations, and practical tips for optimizing route lookup.

Backend DevelopmentNode.jsPrefix Tree
0 likes · 13 min read
Boost Node.js Routing Performance with Trie Prefix Trees
Beike Product & Technology
Beike Product & Technology
Aug 7, 2020 · Backend Development

Analysis of Gin Framework Routing Prefix‑Tree Implementation

This article provides a detailed examination of Gin's routing mechanism in Go, describing the internal prefix‑tree data structures, the algorithms for building and searching the tree, code walkthroughs of key functions such as addRoute and findWildcard, and case studies of typical and edge‑case route configurations.

GinGoPrefix Tree
0 likes · 21 min read
Analysis of Gin Framework Routing Prefix‑Tree Implementation