Redis 5.0.7 소스 분석 - 정수 집합 구현
Redis의 정수 집합(intset) 관련 파일은 intset.h와 intset.c로 구성되어 있습니다.
intset은 정렬된 정수 배열과 유사한 작업을 수행하지만, 데이터 유형에 따라 메모리 최적화가 이루어집니다.
데이터 구조
1 typedef struct custom_set {
2 uint32_t format;
3 uint32_t size;
4 int8_t elements[];
5 } custom_set;
custom_set 구조는 가변 길이 구조체 ...
7월 14일 03:09에 게시됨