Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Redis's Homegrown JSON Parser (github.com/redis)
2 points by tuananh 3 days ago | hide | past | favorite | 1 comment




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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: