Tag

C strings

1 views collected around this technical thread.

Wukong Talks Architecture
Wukong Talks Architecture
Jul 21, 2021 · Fundamentals

Understanding Redis Simple Dynamic Strings (SDS): Structure, Benefits, and Memory Management

This article explains the Redis Simple Dynamic String (SDS) data structure, comparing it with traditional C strings, detailing its struct layout, O(1) length retrieval, pre‑allocation strategy, lazy space release, and provides code examples illustrating how SDS avoids buffer overflows and improves performance.

C stringsRedisSDS
0 likes · 11 min read
Understanding Redis Simple Dynamic Strings (SDS): Structure, Benefits, and Memory Management
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Jul 9, 2021 · Fundamentals

Understanding Character Encoding and Redis SDS Dynamic String Implementation

This article explains how computers store text using binary, introduces ASCII, Unicode and UTF‑8 encoding rules, discusses the limitations of C‑style null‑terminated strings, and describes Redis's Simple Dynamic String (SDS) data structure, its old and new versions, advantages, and related APIs.

C stringsRedisSDS
0 likes · 14 min read
Understanding Character Encoding and Redis SDS Dynamic String Implementation