Tagged articles
15 articles
Page 1 of 1
Java Architect Essentials
Java Architect Essentials
Sep 23, 2022 · Databases

Redis Set and Sorted Set Internal Encodings: intset, Hashtable, Skiplist and Ziplist

This article explains why Redis stores set and sorted‑set objects using two different internal encodings, describes the intset and hashtable representations for sets, the skiplist and ziplist representations for sorted sets, shows the upgrade process with code examples, and lists the common commands for manipulating these data structures.

Data StructuresSetSorted Set
0 likes · 16 min read
Redis Set and Sorted Set Internal Encodings: intset, Hashtable, Skiplist and Ziplist
IT Architects Alliance
IT Architects Alliance
Jul 31, 2022 · Databases

Why Redis Uses Dual Data Structures for Sets and Sorted Sets

This article explains how Redis internally stores set and sorted‑set objects using intset, hashtable, ziplist, and skiplist encodings, the conditions that trigger each representation, the upgrade process, and the essential Redis commands for manipulating these data structures.

Data Structuresdatabasehashtable
0 likes · 16 min read
Why Redis Uses Dual Data Structures for Sets and Sorted Sets
Top Architect
Top Architect
Mar 11, 2022 · Databases

Understanding Redis Set and Sorted Set Internal Encodings: intset, hashtable, skiplist, and ziplist

This article explains how Redis stores Set and Sorted Set objects using dual internal representations—intset and hashtable for sets, skiplist and ziplist for sorted sets—detailing their structures, encoding selection criteria, upgrade processes, command usage, and the reasons behind combining dictionaries with skiplists for optimal performance.

BackendData Structureshashtable
0 likes · 15 min read
Understanding Redis Set and Sorted Set Internal Encodings: intset, hashtable, skiplist, and ziplist
php Courses
php Courses
Jul 5, 2021 · Backend Development

Deep Dive into PHP 8 Array Initialization and HashTable Internals

This article explains how PHP 8 initializes arrays at compile time, detailing the allocation and setup of the HashTable structure, the conditional creation of bucket memory, and provides the full source code and flowcharts for functions such as _zend_hash_init_int and zend_hash_real_init_ex.

PHP8array initializationhashtable
0 likes · 9 min read
Deep Dive into PHP 8 Array Initialization and HashTable Internals
vivo Internet Technology
vivo Internet Technology
Dec 11, 2019 · Frontend Development

Deep Dive into JavaScript Array Implementation in V8 Engine

The article explains how V8 implements JavaScript arrays using two storage strategies—Fast Elements with contiguous memory that dynamically resizes, and Slow Elements backed by a hash table—detailing the heuristics for converting between them and contrasting this design with traditional fixed‑type, fixed‑size arrays.

Array ImplementationFast ArraySlow Array
0 likes · 13 min read
Deep Dive into JavaScript Array Implementation in V8 Engine
Java Captain
Java Captain
Nov 20, 2017 · Fundamentals

Differences Between Java HashMap and Hashtable

This article explains the key distinctions between Java's HashMap and Hashtable, covering thread safety, synchronization, null handling, iterator behavior, performance implications, and how to achieve synchronization for HashMap, helping readers prepare for interview questions on the Java collections framework.

Data StructuresHashMaphashtable
0 likes · 5 min read
Differences Between Java HashMap and Hashtable
21CTO
21CTO
Dec 5, 2016 · Backend Development

How to Implement array_concat in a PHP Extension: Merging Arrays at the C Level

This article explains how to create a PHP extension function named array_concat that merges two arrays by concatenating string values for matching keys, detailing the required C code, Zend hash operations, parameter parsing, and example usage, providing a practical guide for PHP developers.

ArrayCExtension
0 likes · 6 min read
How to Implement array_concat in a PHP Extension: Merging Arrays at the C Level
dbaplus Community
dbaplus Community
Aug 12, 2016 · Backend Development

Designing a High‑Performance In‑Memory Cache: Structures, Locks, and Go Concurrency

This article explores the fundamentals of building a high‑performance in‑memory cache, covering the relationship between caches and KV stores, various cache types, core data structures such as hash tables, lock strategies, rehash techniques, memory management, and network models, with practical examples and Go‑based concurrency designs.

GoMemoryManagementhashtable
0 likes · 20 min read
Designing a High‑Performance In‑Memory Cache: Structures, Locks, and Go Concurrency