Tagged articles
7 articles
Page 1 of 1
Su San Talks Tech
Su San Talks Tech
Oct 30, 2023 · Backend Development

Boost Backend Performance with HashMap, LinkedHashMap, TreeMap & ByteBuffer

This article explores four powerful yet understated caching techniques—HashMap with read‑write locks, LinkedHashMap‑based LRU caches, TreeMap for consistent hashing, and ByteBuffer pooling—detailing their implementations in middleware such as RocketMQ, MyBatis, and Cobar to enhance backend performance.

Backend DevelopmentByteBufferConcurrentHashMap
0 likes · 10 min read
Boost Backend Performance with HashMap, LinkedHashMap, TreeMap & ByteBuffer
FunTester
FunTester
Jul 20, 2021 · Backend Development

How to Sort a Java Map by Value Using LinkedHashMap and Lambdas

This article explains why HashMap cannot preserve entry order, introduces LinkedHashMap to maintain insertion order, and provides both classic and lambda‑based Java solutions—including detailed code snippets—to sort a Map by its values efficiently.

CollectorsJavaLambda
0 likes · 8 min read
How to Sort a Java Map by Value Using LinkedHashMap and Lambdas
Selected Java Interview Questions
Selected Java Interview Questions
Jun 2, 2021 · Fundamentals

Understanding Dart’s HashMap and LinkedHashMap: Implementation Details and Interview Questions

This article explains the internal implementation of Dart's HashMap and LinkedHashMap, compares them with Java's versions, provides common interview questions, and demonstrates creation, lookup, insertion, deletion, resizing, and iteration with code examples to help developers prepare for technical interviews.

DARTHashMapLinkedHashMap
0 likes · 22 min read
Understanding Dart’s HashMap and LinkedHashMap: Implementation Details and Interview Questions
Java Captain
Java Captain
Nov 23, 2019 · Fundamentals

Understanding LinkedHashMap Order and LRU Cache Implementation in Java

LinkedHashMap extends HashMap by maintaining a doubly linked list to preserve insertion or access order, allowing optional LRU cache behavior via the accessOrder flag, and its source code shows how entries are linked, reordered on get, and how to override removeEldestEntry for eviction.

AccessOrderDataStructureHashMap
0 likes · 8 min read
Understanding LinkedHashMap Order and LRU Cache Implementation in Java