Tag

internal-implementation

0 views collected around this technical thread.

Architect's Tech Stack
Architect's Tech Stack
Nov 14, 2023 · Backend Development

Understanding Why HashMap.keySet() Traversal Involves Two Iterations and Its Internal Mechanism

This article explains the internal workings of HashMap traversal in Java, showing why using keySet() results in two passes—first converting to an iterator and then fetching values—and details the underlying iterator, KeyIterator, and HashIterator implementations with code examples.

BackendHashMapIterator
0 likes · 9 min read
Understanding Why HashMap.keySet() Traversal Involves Two Iterations and Its Internal Mechanism
政采云技术
政采云技术
Jan 31, 2023 · Artificial Intelligence

Redis Object: The Bridge Between Two Data Structures

RedisObject serves as a bridge between Redis's external data structures and internal implementations, enabling efficient storage and retrieval of data types like strings, lists, hashes, sets, and sorted sets through a unified object model.

Performance OptimizationRedisdata structures
0 likes · 24 min read
Redis Object: The Bridge Between Two Data Structures