Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Explore BestHub

#Performance

RSS feed
Follow or choose interest 7-day signal and related keywords

Latest articles

500 articles in the current browsing window, ordered by publication date.

Try-Catch Placement in Loops: Behavioral Differences & Performance Analysis

This article explains the behavioral differences between placing try-catch inside versus outside a for loop in Java, demonstrating with code examples how exception handling affects loop continuation, and analyzes performance implications including bytecode-level exception table mechanics and memory overhead when exceptions occur frequently.

Try-Catch Inside or Outside For Loop? Java Exception Handling & Performance Explained

This article compares placing try-catch inside versus outside a for loop in Java, showing how the placement changes loop behavior on exceptions — outside stops the loop, inside lets it continue — and analyzes performance via the JVM exception table, concluding the choice depends on business requirements.

VS Code 1.141 Adopts iOS-Like Visual Language: Rounded Cards, Frosted Glass, and the Density Trade-off

VS Code 1.141 introduces an iOS-inspired design system with rounded cards, floating menus, and frosted glass effects, driven by the new Agents window, but at the cost of reduced code density and potential performance overhead, with options to revert or adjust via settings.

Why Modern Software Bloats: Screwdriver Tools vs. Platform Empires

This article contrasts lightweight Unix-style tools like ripgrep and curl with bloated commercial platforms, explaining how SaaS business metrics drive feature creep, how Electron-style abstraction layers offload hardware costs to users, and why a local-first, lightweight tool resurgence is emerging.

Node.js 27 Alpha: V8 15.6 Doubles Default Heap Limit, Breaks Serialization Compatibility

Node.js 27 Alpha upgrades V8 to 15.6, doubling the default old-generation heap limit on 8 GB machines from 2 GB to 4 GB unless --max-old-space-size is set, while adding Buffer to the V8 allocation quota, introducing a new serialization format that breaks cross-version compatibility, doubling heap snapshot size, and adding Math.sumPrecise and iterator helpers.

Linux High CPU: Real vs Fake vs Stolen — 6-Step Systematic Troubleshooting Guide

This article provides a comprehensive six-step methodology for diagnosing high CPU usage on Linux servers, distinguishing between real, fake, and stolen CPU time, and demonstrating practical commands like mpstat, perf, and bpftrace through real-world scenarios including regex backtracking, GC storms, lock contention, and container throttling.

Linux CPU Spike Troubleshooting: From Alert to Root Cause

A comprehensive guide to diagnosing Linux server CPU spikes using systematic evidence chains: verify alert scope, identify processes and threads, distinguish user/kernel/interrupt time, analyze memory and I/O pressure, leverage perf and language runtimes, check container quotas, correlate deployments and cron jobs, and validate fixes with repeatable measurements.

Linked Lists Dead? Why O(1) Isn't Always Faster Than O(N) — Stroustrup's Insight

This article analyzes why linked lists often lose to arrays in real-world performance despite theoretical O(1) insertion advantages, exploring CPU cache effects, memory walls, Stroustrup's vector vs list experiments, and scenarios where linked lists still excel in kernels and hybrid structures.

MySQL Replication Lag Troubleshooting: 7-Step Diagnostic Guide for 5.7/8.0

A comprehensive guide to diagnosing and resolving MySQL master-slave replication delay, covering root causes like large transactions, parallel replication misconfiguration, hardware bottlenecks, lock contention, missing indexes, network issues, and semi-sync replication, with practical tools, monitoring setup, and real-world case studies.

Laptop vs Desktop: Pros, Cons & Which to Choose for Your Needs

This comprehensive comparison breaks down the performance, value, upgradeability, portability, and ergonomics of laptops versus desktops, includes a detailed comparison table, and provides tailored recommendations for students, office workers, gamers, creators, programmers, and home users to help you decide which form factor best fits your workflow and budget.

Java Lambda Deep Dive: Why It's Not Anonymous Inner Class Syntactic Sugar & How invokedynamic Powers It

This article dissects Java Lambda implementation, revealing how invokedynamic and LambdaMetafactory dynamically generate hidden classes at runtime, why non-capturing lambdas are singletons, how captured variables become final field copies, and the performance implications versus anonymous inner classes.

Go Performance 13-Year Retrospective: 26 Versions Benchmarked, 1.27 Beats 1.23 by 11.5%

Praneos Labs benchmarked 26 Go versions (1.2 to 1.27) on identical hardware, revealing three performance phases: compiler overhaul (1.5–1.7), a seven-year throughput plateau (1.8–1.23) focused on GC latency, and recent runtime optimizations (1.24–1.27) delivering an 11.5% speedup over 1.23, with map-heavy and allocation-heavy code benefiting most while numeric loops stagnated since 1.7.

LRU Cache in 3 Lines: How LinkedHashMap Does the Heavy Lifting

This article demonstrates how to build a bounded LRU cache in three lines by extending LinkedHashMap with access-order enabled and overriding removeEldestEntry, detailing the internal doubly-linked list mechanics, thread-safety limitations, memory overhead, and when to migrate to Caffeine for advanced features like TTL and high concurrency.

Linux sysctl Tuning: Diagnose Bottlenecks Before Tweaking Kernel Parameters

A comprehensive guide to Linux kernel parameter tuning via sysctl, covering network, memory, and filesystem subsystems with a systematic workflow: baseline capture, bottleneck identification, single-parameter changes, validation, persistence, and rollback — illustrated with real production post-mortems.

Try-Catch Inside vs Outside For Loops: Behavior, Performance & When to Use Each

This article explains the critical behavioral difference when placing try-catch inside versus outside a for loop: outside placement terminates the loop on exception, while inside allows continuation. It also analyzes performance implications, showing negligible overhead when no exceptions occur but increased memory consumption if many iterations throw exceptions, and details the JVM exception table mechanics that underlie this behavior.

Go encoding/json/v2: 14-Year Evolution from Legacy Flaws to Modern Design

This article chronicles the 14-year evolution of Go's encoding/json standard library, detailing how backward compatibility constraints prevented fixing known flaws, the rise of third-party high-performance alternatives, and the eventual creation of encoding/json/v2 in Go 1.27 with a dual-package architecture that preserves v1 behavior while enabling modern defaults and performance gains.

Why Hutool 5 Dominates Java Projects: One Library Replaces Dozens of Custom Utils

This article analyzes why Hutool 5 has become the standard Java utility library, detailing its modular design, code reduction benefits, performance improvements over JDK, and comparison with Guava and Apache Commons, while providing practical migration examples for strings, dates, files, HTTP, JSON, and AI integration.

Java Virtual Threads: Why Production Adoption Lagged Behind the Hype

The article analyzes why Java virtual threads, despite promising million-concurrency with minimal code changes, see little production adoption due to pinning with synchronized, ThreadLocal memory pressure, incomplete framework support, and CPU-bound workload mismatch, while showing benchmarks where they excel in I/O-heavy services but migration costs deter legacy systems.

Java Virtual Threads: Why the 'Million Concurrency' Promise Failed in Production

This article analyzes why Java virtual threads, despite promising million-concurrency with minimal overhead, see little production adoption due to pinning with synchronized blocks, ThreadLocal memory explosions, incomplete framework support, and unsuitability for CPU-bound workloads, while showing benchmarks where they excel in I/O-heavy scenarios.

Dubbo vs gRPC vs OpenFeign: Protocol, Serialization, Performance, Governance

The article walks through three real‑world Java service scenarios—high‑frequency internal calls, cross‑language algorithm services, and Spring Cloud gateway integration—comparing Dubbo, gRPC and OpenFeign on protocol, serialization, latency, throughput, cross‑language support, service governance and discovery, and finally presents a decision matrix and a mixed‑architecture demo.

Diagnosing Slow HTTPS Handshakes: Certificates, Network, or Cipher Suites?

This comprehensive guide provides a systematic troubleshooting framework for slow HTTPS handshakes, covering TCP/TLS timing separation, certificate chain validation, OCSP stapling, cipher suite selection, session reuse, and packet capture analysis with practical commands for Nginx and Apache.

Why OpenSearch Is Gaining Massive Adoption: Architecture, Features, and Performance

OpenSearch, originally a fork of Elasticsearch, has become an independent Apache‑2.0‑licensed search and analytics platform governed by the Linux Foundation; its five‑layer architecture, segment replication, read/write separation, GPU‑accelerated vector indexing, and strong community growth deliver up to 9.5× query speed and make it a compelling choice over Elasticsearch.

I Almost Got Fired Using Parallel Stream in Production

A production outage caused by Java 8 parallel streams exposed the dangers of the default commonPool, unlimited task queuing, and long‑running API calls, leading to 100% CPU, 30+ GC events per hour, and a near‑service collapse, which was resolved by custom thread pools, timeouts, and CompletableFuture alternatives.

pnpm 12 Goes Native: Rust Rewrite Eliminates Node.js Runtime Dependency

pnpm 12 replaces its TypeScript core with a Rust‑based native binary, allowing the package manager to run without Node.js, while preserving commands, lockfile format, and workspace behavior, and delivers faster installations, lower memory use, and new features such as managing runtimes, though some edge‑case changes require attention.

Can PHP Be Compiled to EXE? A Practical Guide with ThinkPHP 8 and TypePHP

This article walks through using the TypePHP AOT compiler with ThinkPHP 8 to turn a PHP web application into a self‑contained Windows executable, showing architecture changes, a 9.2× performance boost, step‑by‑step environment setup, build scripts, runtime verification, and five common pitfalls with solutions.

Why a 5 ms SQL Query Holds a DB Connection for 500 ms – The Hidden Transaction Issue

The article explains how a fast SQL statement can occupy a database connection for hundreds of milliseconds because Spring’s @Transactional starts the transaction and acquires the connection long before the first JDBC statement, and shows how the new Spring Boot 4.1 `connection‑fetch: lazy` setting postpones the acquisition to solve the problem.

20 Must‑Change Linux Kernel Parameters for Production Environments

This article presents a practical checklist of 20 Linux kernel parameters—grouped by network, memory, process, and filesystem settings—explaining their default values, typical failure symptoms, step‑by‑step tuning commands, verification methods, and rollback procedures to ensure production systems such as web servers, databases, caches, and containers run without kernel‑level bottlenecks.

Day63 Architecture Practice: Complete a 25‑Point Case Study Under Time Pressure

This article walks through a timed, 25‑point case study for a city‑wide electric‑vehicle charging platform, detailing performance bottlenecks, capacity planning, reliable messaging, protocol evolution, and access‑control design, and provides reference answers that illustrate the analytical process required to score each question.

2026 China Database Technology Conference Launches: Data Fusion and AI Leadership

The 17th China Database Technology Conference (DTCC 2026) ran from August 20‑22 in Beijing, gathering top experts to discuss database kernel innovations, cloud‑native and distributed practices, AI‑driven data, vector databases, real‑time warehouses, and the emerging Agent era, while showcasing cutting‑edge solutions from Dameng, Tencent Cloud, Alibaba Cloud, OceanBase and GoldenDB.

Four JMH Cases Reveal How Java JIT Optimizes at the Assembly Level

The article walks through four carefully designed JMH benchmarks—method inlining, SIMD vectorization, lock elimination, and a Netty AsciiString regression—to show how JVM JIT optimizations appear in assembly, explain the performance impact (up to 1500×), and demonstrate how to diagnose and fix real‑world issues using assembly analysis.

Performance & Reliability Case Study: Identify Bottlenecks, Plan Capacity, Design Fault Tolerance

The article walks through a provincial internet hospital scenario where a 5,000 QPS peak load only yields about 2,200 QPS throughput, P95 latency spikes to 8 seconds and error rate hits 10%, pinpointing a database bottleneck, then outlines SQL tuning, caching, CDN, async processing, capacity planning for 6,000 QPS, high‑availability redesign, reliability calculations, and a comprehensive validation plan.

Why Most Servers Run Linux: Historical, Technical, and Economic Reasons

The article compiles several Zhihu answers explaining why Linux dominates server deployments, covering early Windows‑IIS dominance, open‑source ecosystem effects, performance and cost advantages, licensing fees, container support, and the long‑term Matthew‑effect that cemented Linux’s position.

Mastering C++ Allocators and PMR: Build Robust, High‑Performance Memory Management

The article explains why ordinary heap allocation can cause fragmentation and slowdown, introduces the C++ allocator interface and its allocate/deallocate functions, shows how to implement a custom stack‑based allocator, compares traditional allocators with C++17 polymorphic memory resources (PMR), and provides practical code examples, performance benchmarks, and best‑practice guidelines.

Polonius Alpha: Rust’s Next‑Gen Borrow Checker Lands on Nightly After Ten Years

Polonius Alpha, the flow‑sensitive next‑generation borrow checker for Rust, has arrived in the Nightly channel, promising to accept code previously rejected by the flow‑insensitive NLL checker, with performance impact largely negligible across thousands of popular crates, while still offering a way to disable it.

Common Causes and Fix Steps for MySQL Master‑Slave Replication Lag

This guide walks through why MySQL master‑slave replication lag occurs, the key metrics to monitor, a step‑by‑step troubleshooting flow, ten typical root causes, concrete remediation actions, verification methods, rollback plans, and production‑grade best practices for keeping replication latency near zero.

Can PHP Finally Be Compiled to Native Code? Inside the TypePHP AOT Compiler

TypePHP translates PHP source to C++ and then to native binaries, eliminating interpreter overhead and delivering up to 135× speed‑up on compute‑heavy benchmarks, while remaining free, open‑source, and targeting CPU‑bound workloads such as image processing, finance, and scientific calculations.

How Claude Harness Decouples Brain and Hands to Keep Long Tasks Running

Anthropic engineers discovered that tightly coupling an AI agent's reasoning core and execution environment caused failures and latency, so they redesigned Claude Harness to separate the brain from the hands, introduce an append‑only event log, and achieve up to 60% lower startup latency while improving security and scalability.

Choosing the Right AI Harness: A Guide for Engineers and Everyday Users

This article explains what an AI harness is, compares ready‑made and DIY options, categorises three main harness types, and provides an eight‑point checklist—including context management, memory, protocol support, standards, model flexibility, remote access, debugging, and hackability—to help both engineers and non‑technical users select the most suitable solution.

Tuning Nginx Worker Processes and Connections for High‑Concurrency Scenarios

This guide walks through the complete workflow for analyzing, configuring, and validating Nginx in high‑traffic environments, covering architecture basics, core parameters, system limits, practical configuration examples, stress‑testing methods, monitoring, risk mitigation, rollback procedures, and production‑grade best practices.

Key Metrics Every Ops Engineer Should Monitor

This article enumerates essential operational metrics—such as CPU, memory, disk and network I/O, response time, throughput, error rates, availability, MTBF/MTTR, security logs, and capacity‑planning indicators—explaining their meanings and recommended target values to help engineers comprehensively monitor system performance, stability, and efficiency.

Boost Ops Efficiency: 10 Essential Linux Tools Every Engineer Should Use

This article presents a practical guide for system administrators and DevOps engineers, introducing ten high‑frequency Linux tools—htop, iotop, nethogs, ncdu, strace, lsof, tcpdump, netstat/ss, curl, and systemctl/journalctl—detailing their installation, core and advanced usage, real‑world case studies, and how to combine them to dramatically improve troubleshooting speed and overall operational efficiency.

How to Quickly Identify High‑CPU Processes on a Linux Server with a One‑Minute Command Checklist

This article walks through a systematic, three‑stage method—starting with a 60‑second global scan using uptime, top, vmstat and mpstat, then pinpointing the offending process and thread with pidstat, perf and strace, and finally classifying the root cause to apply the appropriate fix—so you can diagnose and resolve Linux CPU spikes without resorting to blind restarts.

antirez’s Pure‑C MiniMax‑H3 Engine Generates 512×512 Video in 3.5 s on M5 Max

The article details how antirez rebuilt a zero‑dependency, high‑throughput MiniMax‑H3 video/audio inference engine entirely in C for Apple Silicon, achieving 22‑frame 512×512 video rendering in about 3.5 seconds on an M5 Max, and explains the engineering tricks, benchmark results, adjustable quality settings, terminal UI, community feedback, and upcoming sparse‑attention support.

Achieving 6 Million Orders per Second with SpringBoot and LMAX Disruptor

The article explains why traditional Java BlockingQueue struggles under high load, introduces the LMAX Disruptor’s lock‑free ring buffer design, compares performance showing up to 600 万+ events per second versus 100 万 for ArrayBlockingQueue, and provides step‑by‑step SpringBoot integration with code examples and best‑practice tips.

Why Is Hutool 5 Gaining So Many Users?

Hutool 5 has become the de‑facto utility library for modern Java projects because it eliminates duplicated, error‑prone hand‑crafted utils, reduces code volume by up to 50%, offers a stable, modular API that works with JDK 8+, and provides ready‑to‑use features for strings, dates, files, HTTP, JSON, encryption and even AI integration.

Why Splitting into Microservices Can Drop Performance by 300%: 10 Common Anti‑Patterns to Avoid

A high‑traffic e‑commerce monolith was split into 13 microservices, causing order latency to jump from 300 ms to 1.2 s, P99 over 8 s, and throughput to halve, and the article analyzes why this happens and presents ten fatal anti‑patterns with concrete remediation steps.

Go 1.27 makes encoding/json/v2 default after 5½ years – timeline and benchmarks

After a five‑year experimental phase, Go’s new json/v2 package becomes the default in Go 1.27; the author traces its history, presents on‑machine benchmark comparisons showing faster struct unmarshalling but slower map handling, and reveals three undocumented issues—including format‑tag removal, altered UTF‑8 output, and map[string]any slowdown—that developers must consider when migrating.

Master DuckDB: From Your First SQL Query to Analyzing Ten Million E‑Commerce Rows

This comprehensive DuckDB tutorial explains why loading large CSV files into Pandas is inefficient, demonstrates how DuckDB can query CSV, Parquet, and JSON directly, walks through SQL basics, advanced features like window functions and CTEs, compares performance against Pandas on ten‑million‑row datasets, and provides practical tips for tuning, common pitfalls, and when to choose DuckDB for data analysis.

Redis Persistence Deep Dive: From a Major P0 Outage to RDB+AOF Hybrid Implementation

The article analyses a real‑world P0 outage caused by treating Redis as a simple cache, explains why persistence is the decisive factor when Redis stores session, inventory or lock data, and provides a step‑by‑step guide to RDB, AOF and hybrid persistence, configuration, monitoring, recovery and best‑practice recommendations.

Reconstructing an AI App’s Waiting Experience with Flutter RUM Monitoring

This article explains how to use Alibaba Cloud's Flutter RUM SDK to correlate user actions, network requests, long‑tasks and errors, reconstructing the full “spinning page” scenario in AI applications, and shows how STAROps can pinpoint interface failures, client‑side blocks, and rendering bottlenecks with concrete integration steps and code examples.

A Complete Walkthrough of Investigating High Server Load in Production

This article narrates a step‑by‑step investigation of a sudden CPU load spike on a 24‑core e‑commerce web server, revealing an I/O bottleneck caused by misconfigured log rotation and excessive debug logging, and outlines the diagnostic commands, root‑cause analysis, immediate remediation, and long‑term fixes.

First‑hand Benchmark: DeepSeek V4 Flash Across Claude Code, Codex, OpenCode, and Oh My Pi

A Composio test runs DeepSeek V4 Flash through four agent harnesses on 30 real multi‑step tasks integrating tools like Gmail and GitHub, revealing differences of up to three successful tasks, three‑fold cost variation, and 2.2× speed changes, with no single harness dominating all metrics.

Production-Ready PHP Docker Images: Solving Common Deployment Pitfalls

The official PHP Docker image lacks Composer, production‑grade security, and runs as root, so most teams fork it and create fragile internal images; serversideup/php builds on the official image by adding environment‑driven configuration, non‑root execution, S6 process management, FrankenPHP support, built‑in health checks, and performance optimizations that deliver up to 484 requests per second versus 68 for the vanilla image.

How Baidu Cloud’s Sonata Achieves Predictable Performance Across Multi‑Vendor, Multi‑Generation NICs (NSDI’27)

The paper presents Sonata, a software‑centric vSwitch data plane that decouples from specific NICs, enabling a single implementation to handle heterogeneous, multi‑generation hardware while delivering 2.13‑2.51× software CPS gains and an additional 4.3‑11.5× boost with hardware offload, all validated on hundreds of thousands of production servers.

Revisiting synchronized lock upgrade: JVM‑level details of biased, lightweight and heavyweight locks

This article explains how the JVM implements synchronized by using the object header's Mark Word to transition through biased, lightweight, and heavyweight lock states, covering the underlying data structures, lock acquisition and release processes, revocation, downgrade, tuning parameters, practical verification, performance pitfalls, and a comparison with ReentrantLock.

7 Fast Pandas Vectorization Tricks: Arithmetic, Conditional Logic, and Group Aggregation

This article benchmarks seven common pandas tasks—arithmetic, conditional mapping, dictionary lookup, string cleaning, group aggregation, binning, and query/eval—showing how vectorized alternatives can speed up loops by up to 7,000× and offering practical guidance on when each technique delivers meaningful gains.

R2DBC vs JDBC: Choosing the Right Persistence for Reactive Spring Boot Projects

This article compares Spring Data JDBC and Spring Data R2DBC for Spring Boot 3.x/4.x projects, detailing setup, Maven dependencies, configuration, entity definitions, repository and service implementations, transaction handling, performance trade‑offs, and provides a hybrid approach that wraps JDBC calls in reactive Monos for WebFlux, helping developers decide which persistence layer best fits their reactive architecture.

Microsoft Announces Major Windows 11 Foundation Overhaul After Five‑Year Delay

In its 2026 Q4 earnings call, Microsoft CEO Satya Nadella admitted Windows 11’s deteriorating user experience and pledged a five‑year‑late, $‑heavy foundation overhaul that restores task‑bar positioning, strips search ads, revives the 20/20 performance project, and modernizes legacy UI components.

Boost Excel Import/Export Performance in Spring Boot with EasyExcel

The article explains why native Apache POI causes memory‑explosion and maintenance headaches for Excel import/export in Java back‑ends, introduces Alibaba's EasyExcel as a low‑memory, annotation‑driven alternative, and provides step‑by‑step Spring Boot code for exporting, importing, custom conversion, validation, complex headers, pagination, template filling, and common pitfalls with concrete solutions.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.