Settings

Theme

Redis's Homegrown JSON Parser

github.com

2 points by tuananh a month ago · 1 comment

Reader

Barathkanna a month ago

For this use case it makes sense. cJSON is a general-purpose library, but Redis only needs fast access to a few top-level fields for filters. A tiny purpose-built parser that avoids allocations and skips building a full tree will naturally beat a generic JSON parser here. It’s not “better than cJSON” in general, just better for this very narrow hot path.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection