Tag

HashTable

1 views collected around this technical thread.

Didi Tech
Didi Tech
Nov 9, 2023 · Databases

Redis Hash Internal Encoding: Ziplist vs Hashtable – Performance Analysis and Optimization

The incident showed that Redis hashes encoded as ziplist incur O(N) HEXISTS latency, causing high CPU on hot keys, while hashtable‑encoded hashes remain O(1); adjusting hash‑max‑ziplist settings or redesigning hot‑key patterns can convert to faster, though more memory‑hungry, hashtable encoding.

HashTableOptimizationRedis
0 likes · 17 min read
Redis Hash Internal Encoding: Ziplist vs Hashtable – Performance Analysis and Optimization
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 StructuresHashTableRedis
0 likes · 16 min read
Redis Set and Sorted Set Internal Encodings: intset, Hashtable, Skiplist and Ziplist
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.

Data StructuresHashTableRedis
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.

Array InitializationHashTableSource Code
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 ArrayHashTable
0 likes · 13 min read
Deep Dive into JavaScript Array Implementation in V8 Engine
Refining Core Development Skills
Refining Core Development Skills
Nov 13, 2019 · Backend Development

Memory Optimizations in PHP7: Changes to zval and HashTable Structures

The article analyzes PHP7's memory optimizations by comparing the zval and HashTable structures of PHP 5.3 and PHP 7.2, showing how reduced sizes and better cache‑line alignment lead to significant performance improvements.

HashTableMemory OptimizationPHP
0 likes · 7 min read
Memory Optimizations in PHP7: Changes to zval and HashTable Structures
Selected Java Interview Questions
Selected Java Interview Questions
Nov 10, 2019 · Fundamentals

Understanding HashMap Collision Resolution and Internal Implementation in Java

This article explains how Java's HashMap stores key‑value pairs, details the hash calculation, index mapping, collision handling via linked lists, the role of load factor, resizing mechanics, and provides annotated source code for core methods such as put, get, and internal Entry class.

DataStructureHashMapHashTable
0 likes · 21 min read
Understanding HashMap Collision Resolution and Internal Implementation in Java
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.

CollectionsData StructuresHashMap
0 likes · 5 min read
Differences Between Java HashMap and Hashtable