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.

FastAPI for Java Developers: A Complete Beginner’s Guide to High‑Performance APIs

This article explains FastAPI’s core concepts, compares it with Spring Boot and Flask, shows why its ASGI‑based architecture delivers superior performance, provides step‑by‑step setup, code examples, benchmark results, pros and cons, and practical use‑case recommendations for Java developers.

Inside Python’s GIL: How It Shapes Multithreaded Performance and What You Can Do About It

This article explains the inner workings of Python’s Global Interpreter Lock (GIL), why it exists, how it is released during I/O and C‑extension calls, its impact on CPU‑bound versus I/O‑bound workloads, practical synchronization primitives, benchmarking results, and the upcoming free‑threading mode in Python 3.13.

Master MySQL Performance: Full Process for Slow Query Analysis and Index Tuning

This guide walks through MySQL performance troubleshooting—from enabling and analyzing slow‑query logs with pt‑query‑digest, interpreting EXPLAIN plans, designing covering and composite indexes, tuning InnoDB buffer pool and connection settings, to best‑practice recommendations and real‑world case validation.

Are You Still Using These 8 Inefficient SQL Patterns?

This article examines eight common SQL pitfalls—including misuse of LIMIT offsets, implicit type conversion, sub‑query updates, mixed ordering, EXISTS clauses, condition push‑down, early limiting, and intermediate result set handling—showing how each can degrade performance and providing rewritten queries with execution‑plan evidence that dramatically improve speed.

Refactoring a 1,000‑Line Untested Core File with AI: My Proven Workflow

The author refactors a 1,021‑line, zero‑test IM conversion module that is referenced in five places by building a characterization‑test net with esbuild stubs, generating 130 exhaustive samples, recording a golden baseline, applying three systematic code transformations, and verifying behavior and a 2.77× speedup, all without touching business logic.

Linux Network Troubleshooting: In‑Depth Guide to tcpdump, netstat and ss

This article walks system administrators and DevOps engineers through a systematic approach to diagnosing Linux network issues, covering the fundamentals of netstat, ss, and tcpdump, interpreting TCP state tables, analyzing packet captures, and resolving common problems such as TIME_WAIT buildup, SYN floods, and HTTPS handshake failures.

Go 1.27 Preview: Generic Methods Land, Built‑in UUID in the Standard Library

The upcoming Go 1.27 release brings a suite of hard‑core upgrades—including the long‑awaited generic methods, deep struct‑literal field selectors, size‑specialized memory allocation, a production‑ready goroutine‑leak profiler, modernized toolchain commands, a new encoding/json/v2 package, built‑in UUID support, and post‑quantum cryptography—signaling a major leap for high‑performance, secure backend development.

How Type Traits Rescue a Broken C++ Object Pool and Enable Type‑Adaptive Pooling

The author recounts how a naïve generic C++ object pool caused data residue, construction failures, and incompatibility with primitive types, then demonstrates a refactored, thread‑safe pool that leverages compile‑time Type Traits, std::enable_if, and constexpr if to apply distinct creation, reset, and destruction logic for trivial, Clear‑able, and non‑trivial types, eliminating the earlier bugs.

Log4a: Open-Source HarmonyOS Logging Library Boosts Performance & Security

Log4a, an open-source HarmonyOS logging library from One Day Accounting, uses a three-layer architecture with background Worker threads to prevent main-thread blocking, supports encrypted log storage, rolling logs, and server upload, and has been validated across apps with over one million users and ten million downloads.

Superpowers 6.0: Not a Speed Tweak—158 Commits Turn the Reviewer into a Read‑Only Adjudicator

Superpowers 6.0 claims roughly double speed and up to 50% fewer tokens, but the real change is a structural rewrite of the reviewer role—merging two reviewers, making it read‑only, distrustful of implementer reports, switching to file‑based context, adding a progress ledger and explicit model selection—resulting in cheaper, stricter, harder‑to‑game reviews.

How Zhihu Optimized Spark Jobs with Gluten: A Practical Deep‑Dive

This article details Zhihu's end‑to‑end experience of migrating Spark SQL workloads to the open‑source Gluten framework, covering background performance benchmarks, the architecture of Gluten and Velox, consistency and performance challenges encountered during migration, the concrete fixes applied, and the resulting resource savings and future plans.

How a 9K‑Star MCP Server Lets Claude Code Scan Millions of Lines in Milliseconds

The codebase-memory-mcp tool builds a tree‑sitter‑based knowledge graph of a codebase, enabling sub‑millisecond queries, 120× token savings, zero‑dependency deployment, cross‑agent sharing, and reproducible benchmarks that show higher answer quality and far lower resource usage than traditional file‑by‑file grep approaches.

FastUtil High‑Performance Collection Best Practices: Speed Up Your Java Programs

FastUtil, an open‑source library maintained by Sebastiano Vigna, offers type‑specialized Java collections that are typically 2–5× faster and use 40–70% less memory than JDK equivalents, and this article provides detailed benchmarks, a cheat‑sheet of core types, production‑ready code snippets, Maven/Gradle setup, and a checklist of common pitfalls to help developers adopt FastUtil safely and efficiently.

Avoid Hidden Performance Landmines: 7 Common Spring Boot Production Pitfalls

The article identifies seven common performance killers in Spring Boot production—N+1 queries, unbounded thread pools, excessive logging, oversized response bodies, missing indexes, synchronous external API calls, and serial API invocations—and provides concrete code‑level solutions such as eager fetching, custom thread pools, lazy logging, DTOs, index creation, timeout configuration, and CompletableFuture parallelism.

Flash-KMeans: Fast, Memory-Efficient Exact K-Means for Billion-Scale Clustering on a Single GPU

Flash‑KMeans is a newly proposed framework that re‑designs exact K‑Means for GPUs by eliminating distance‑matrix materialization, using FlashAssign’s online argmin and Sort‑Inverse Update to cut memory bandwidth and atomic‑write contention, achieving up to 12.5× speedup and dramatically lower VRAM usage on billion‑point datasets.

How React Compiler’s Rust Port Boosts Build Speed Up to 10× with AI‑Assisted Code Migration

The React team fully migrated the React Compiler from TypeScript to Rust, combining human‑designed architecture with AI‑generated code, achieving up to 10× faster core conversion, a 3× overall compile speed increase, seamless integration with Babel, SWC and OXC, and a rigorous three‑layer testing regime.

Homebrew 6.0.0 Release: Overhauled Third‑Party Tap Trust, Linux Sandbox, and Faster JSON API

Homebrew 6.0.0 introduces an explicit third‑party Tap trust model, replaces the YAML bottle metadata with a JSON API, adds a Bubblewrap‑based Linux sandbox, brings new commands like brew exec and parallel brew bundle, fixes three critical security bugs, and delivers noticeable performance gains across the toolchain.

Designing System Architecture for Small‑Medium Companies: When Do You Really Need 5,000 QPS?

The article outlines practical architecture strategies for small‑to‑medium enterprises, progressing from simple monolithic designs for a few thousand daily users to micro‑service and data‑sharding solutions for millions, emphasizing realistic scaling, avoiding premature complexity, and focusing on team capabilities and cost‑effective cloud services.

What Is Load Average? Uncovering the Truth Behind System Load Metrics

Load Average measures the average number of runnable and uninterruptible processes over 1, 5, and 15‑minute windows, differs from CPU usage, and can be misinterpreted—this article explains its kernel calculation, how to assess overload, troubleshoot CPU, I/O, or process‑count issues, and handle container‑specific distortions with cgroup v2 and LXCFS.

Why Two Copies Outperform One: Designing bpf_sock_splice_pair for High‑Speed TCP Loopback

The article examines the design of the new BPF function bpf_sock_splice_pair for intra‑host TCP communication, explains why a single‑copy implementation is suboptimal, introduces a ring‑buffer based two‑copy approach with optional busy‑polling, and presents benchmark results showing up to 7× throughput gains over the baseline.

Choosing Between containerd and CRI‑O for Production Kubernetes: A Detailed Comparison

This article provides a comprehensive analysis of containerd and CRI‑O as Kubernetes container runtimes, covering their architectures, feature sets, installation procedures, migration strategies, performance benchmarks, best‑practice configurations, troubleshooting tips, and monitoring approaches to help operators decide which runtime best fits a production environment.

MySQL Deadlock Elimination: 9 Golden Rules and Production‑Ready Defense

Deadlocks in MySQL are not random glitches but the inevitable result of uncontrolled concurrency, lock granularity, transaction boundaries, and resource ordering; this article explains the underlying lock mechanisms, common deadlock scenarios, and presents nine practical, production‑grade rules for architecture design, lock management, and observability to keep deadlocks within acceptable SLA limits.

Understanding Java Thread Deadlocks: 5 Common Scenarios and How to Fix Them

The article defines Java thread deadlock, illustrates five typical deadlock patterns with diagrams, shows how they cause threads to wait indefinitely, and presents five practical solutions—including consistent lock ordering, reducing nested locks, shrinking lock scope, using timed locks, and adopting lock‑free designs.

etcd Operations Handbook: Backup, Restore, Scaling, and Performance Tuning for Kubernetes

This guide explains why mastering etcd is essential for Kubernetes stability and walks through its core concepts, Raft consensus, MVCC storage, deployment, backup and restore procedures, scaling from three to five nodes, performance optimization, monitoring, alerting, troubleshooting, upgrade strategies, security hardening, and real‑world best‑practice recommendations.

Avoid Animation Pitfalls: Comparing Multiple Android Animation Solutions and Choosing the Right One

This article dissects Android's rendering pipeline, quantitatively compares Native, Lottie, PAG, SurfaceView and TextureView animation implementations, and presents a step‑by‑step selection guide with practical code examples to help developers achieve high‑performance, low‑lag UI effects.

Rust Breaks Its Plateau in June 2026 TIOBE Ranking, Reaching Record High

In June 2026 the TIOBE index lifted Rust to a historic 12th place, overturning earlier fears of a growth slowdown, and the article analyses the language's performance advantages, AI‑era opportunities, steep learning curve, and the broader ecosystem factors that will determine whether Rust can crack the top‑10.

Beyond Validation: How Pydantic’s Rust Engine, Logfire Observability, and AI Agent Framework Transform Modern APIs

The article reveals that Pydantic is more than a validation library—it bundles a high‑performance Rust core, an OpenTelemetry‑based observability platform (Logfire), and a type‑safe agent framework (Pydantic AI), showing when and how to adopt each piece for LLM‑driven workloads.

Fastest Method to Import 1 Billion Rows into MySQL: Architecture and Performance Tips

This article analyzes how to import one billion 1 KB log records stored in HDFS or S3 into MySQL, detailing why a single table cannot hold that volume, the B‑tree index limits, batch‑write strategies, storage‑engine choices, sharding, file‑reading methods, task coordination, and reliability mechanisms.

How to Configure a ThreadPool to Send 10 Million SMS in One Hour (Java)

The article walks through calculating the required QPS for 10 million SMS in an hour, derives a precise ThreadPoolExecutor configuration (core 200, max 500, queue 5000, 60 s keep‑alive, CallerRunsPolicy), and provides complete Spring Boot code with production tips such as pagination, retry, idempotency and rate‑limiting.

Diagnosing MySQL Replication Lag: Causes, Troubleshooting Steps, and Optimization Strategies

This comprehensive guide explains why MySQL master‑slave replication can fall behind, walks through systematic diagnosis of common lag scenarios, and provides concrete configuration tweaks, parallel replication settings, GTID usage, monitoring queries, and upgrade paths to eliminate delay and improve reliability.

Why dbx Beats Navicat and DBeaver: A Fast, Tiny, AI‑Powered DB Client

The open‑source dbx client, built with Rust, Tauri 2 and Vue 3, delivers a 15 MB binary that launches in under two seconds, uses about 80 MB RAM, supports 40+ databases, offers a CodeMirror‑based AI‑assisted editor, and outperforms heavyweight tools like DBeaver and Navicat in speed, resource usage, and feature completeness, though it lacks advanced DBA features such as performance monitoring and robust ER‑diagram editing.

5 Advanced Java Concurrency Tricks That Can Triple Your Throughput

This article walks through five proven Java 21 concurrency tuning techniques—including non‑blocking CompletableFuture pipelines, StampedLock for read‑heavy workloads, bounded queues with CallerRunsPolicy, atomic computeIfAbsent usage in ConcurrentHashMap, and correct virtual‑thread patterns—showing how each can dramatically improve throughput and stability in high‑load systems.

5 Advanced Spring Boot Patterns for Millisecond API Responses

This article presents five advanced Spring Boot 3.5.0 patterns—ETag with conditional requests, read‑write separation, virtual threads, HTTP client connection reuse, and asynchronous processing—to achieve sub‑millisecond API response times, complete with code examples, configuration steps, and performance benefits.

15 Golden Rules for High‑Performance, Maintainable Java Code

This article presents fifteen concrete Java performance‑optimization rules—from readable code and proper data structures to efficient string handling, database access, caching, multithreading, reflection, JVM tuning, and memory management—each illustrated with before/after code examples and practical advice.

If You Can't Use These Linux Performance Tools, Your Server Is Just a Paperweight

This article provides a comprehensive guide to essential Linux performance and observability commands—such as vmstat, iostat, dstat, iotop, pidstat, top/htop, mpstat, netstat, ps, strace, uptime, lsof, perf, and sar—explaining their purpose, typical usage syntax, and how to interpret their output for effective system monitoring and tuning.

Beyond AOP: 4 Ways to Capture Spring Boot Controller Params and Return Values – The Fastest Wins

The article compares four techniques—traditional AOP, a Filter with ContentCaching wrappers, Spring MVC Request/Response Advice, and a custom HandlerAdapter extension—for extracting request parameters and response bodies in Spring Boot 3.5, demonstrating that the HandlerAdapter approach offers the highest performance while remaining non‑intrusive.

Why Is fastutil Up to 10× Faster Than Java’s Standard Collections?

fastutil dramatically outperforms Java’s standard collections by eliminating boxing, cutting memory usage and GC pressure, offering primitive‑specific maps and lists, providing 64‑bit indexed BigArrays for massive data, and delivering faster I/O utilities, all while remaining API‑compatible.

Advanced SpringBoot Caching: How to Build a Custom CacheManager

The article explains why the default SpringBoot cache manager is insufficient for production, then walks through creating custom Caffeine and Redis CacheManager beans, configuring expiration, key prefixes, serialization, and multi‑level caching to solve issues like cache penetration, key collisions, and performance bottlenecks.

Mastering Kubernetes API Server: Deep Dive and Production Best Practices

This comprehensive guide dissects the Kubernetes API Server’s request flow, storage model, consistency guarantees, and extension mechanisms, then walks through a real P0 incident, capacity‑planning tables, APF flow‑control, webhook design, etcd tuning, and concrete code samples to help platform teams build and operate production‑grade control planes.

Efficient Timestamp Retrieval in Rust for High‑Frequency Trading

The article dissects the cost of obtaining timestamps in Rust, compares chrono::Utc::now(), clock_gettime, std::time::Instant and raw RDTSC, explains Linux vDSO behavior, monotonic vs realtime clocks, and proposes a layered timestamp strategy that uses raw cycles for hot‑path latency measurement, calibrated clock_gettime for wall‑clock alignment, and chrono only at system boundaries.

How Ops Engineers Fix MySQL Slow Queries: A Step‑by‑Step Guide

This article walks through the entire MySQL performance troubleshooting workflow from an operations perspective, covering architecture basics, slow‑query‑log configuration, analysis with mysqldumpslow and pt‑query‑digest, EXPLAIN interpretation, index design and optimization, configuration tuning, replication monitoring, real‑time diagnostic commands, risk mitigation, rollback procedures, and backup strategies.

How Alibaba Cloud Milvus Achieves 20× Faster Billion‑Scale Vector Search with DiskANN and RaBitQ

Alibaba Cloud Milvus combines DiskANN graph indexing with the RaBitQ quantization algorithm, delivering over 20× higher QPS, sub‑10% P99 latency, 29% lower memory usage and more than 98% recall on a 100 million‑vector, 768‑dimensional benchmark, while also cutting index build time from 20 h to about 6 h.

Hermes Agent v0.15.0 “Velocity” Boosts Core Speed 4500× and Fixes Prompt Injection Vulnerability

Nous Research has released Hermes Agent v0.15.0 “Velocity”, an open‑source AI‑agent framework that consolidates 747 pull requests into a 4 500‑fold faster core, adds session‑sticky routing, new hermes send and audit commands, enhanced security, multi‑agent Kanban, and numerous integration and UI improvements.

Why SQLite Is the World's Most Deployed Database—and How to Use It End‑to‑End

SQLite, the server‑less, single‑file database engine, is the most widely deployed database on the planet, powering Android, iOS, browsers and countless desktop apps; this article walks through its core features, Linux installation, command‑line CRUD, language bindings for Python, C, Java and Go, plus practical backup and performance tricks.

Avoid AI Pitfalls: A VibeCoding Checklist for Mobile Developers

This guide warns mobile developers that while VibeCoding can quickly generate SwiftUI, Compose, or Flutter code, they must still address security boundaries, cost implications, compliance rules, performance constraints, data‑schema design, testing, and incident‑response practices before releasing an app to real users.

Understanding Reflow and Repaint: The Core Logic Behind Front‑End Performance Optimization

Reflow recalculates layout when geometric properties change, while repaint only redraws visual styles; the article explains their triggers, compares performance impact, and provides practical techniques—such as using DocumentFragment, batching reads before writes, and leveraging transform/opacity—to minimize costly reflows and achieve optimal front‑end rendering.

Mybatis-Plus vs Mybatis-Flex: Which ORM Framework Is Best for Your Project?

This article provides a detailed comparison between Mybatis-Plus and Mybatis-Flex, examining their design philosophies, core mechanisms, feature sets, performance benchmarks, database support, dependency weight, and community maturity, and offers practical guidance on choosing the right framework for different project scenarios.

11 Golden Rules for SQL Performance Optimization

This article explains why inefficient SQL queries cause most database bottlenecks and presents eleven concrete rules—covering indexes, SELECT *, LIMIT, WHERE clause tuning, join strategies, execution‑plan analysis, subqueries, DISTINCT, ORDER BY/GROUP BY, UNION vs UNION ALL, and query decomposition with materialized views—to help developers systematically improve SQL execution speed on MySQL and Oracle.

Polars vs Pandas: Is Switching Worth It for Ten‑Million‑Row Datasets?

The article shows that Polars, a query‑compiling DataFrame library, can accelerate ten‑million‑row GroupBy workloads by 6‑10× compared with Pandas, explains the underlying optimizer, Arrow columnar engine and Rust parallelism, provides a 20‑item syntax map, three real migration scenarios, streaming for out‑of‑memory data, and AI‑pipeline use cases, and offers a step‑by‑step migration guide.

Druid vs HikariCP: Which Connection Pool Wins?

This article compares Druid and HikariCP, the two most popular Java database connection pools, by explaining how connection pools work, presenting benchmark results, dissecting HikariCP's lock‑free design and bytecode optimizations, detailing Druid's rich monitoring and security features, and offering a practical decision framework for different scenarios.

2026 AI Coding Agent Benchmark: Cursor, Claude Code, and Codex – Who Leads?

A comprehensive 2026 benchmark evaluates major AI coding agents—Cursor CLI, Claude Code, OpenAI Codex, and Google Gemini—across performance, token consumption, cost per task, and execution time, revealing a tight top‑three score margin and highlighting cost‑efficiency and latency as the new competitive frontiers.

FastJSON: A Drop‑In PHP 8.3+ JSON Extension Up to 6× Faster Than ext/json

FastJSON is a high‑performance PHP 8.3+ JSON extension that serves as a drop‑in replacement for ext/json, offering namespaced fastjson_* APIs, full compatibility with json_last_error, and delivering up to six‑fold speed gains in encoding, decoding, and validation while detailing installation steps, supported flags, memory trade‑offs, and benchmark results.

Why MySQL Replication Lag Isn’t Just a Network Issue

The article explains MySQL master‑slave replication fundamentals, shows how to monitor replication status, enumerates common delay causes such as network latency, master write pressure, SQL thread bottlenecks, large transactions, missing primary keys, slave overload, replication conflicts and GTID quirks, and provides scripts, configuration tips, and real‑world case studies for troubleshooting and prevention.

Kafka vs Pulsar: Choosing the Right Messaging System for Architecture and Production

Kafka and Pulsar are both mature distributed messaging platforms, but they differ fundamentally in architecture, performance, scalability, and operational complexity; this article analyzes their core designs, benchmarks, engineering trade‑offs, and real‑world scenarios to guide architects in making a reliable technology selection.

Mastering ahooks: Practical Tips and Full Guide for React Developers

This article provides a comprehensive, step‑by‑step guide to using Alibaba's ahooks library with React 18, covering installation, core hooks like useRequest, usePagination, state management hooks, side‑effect utilities, performance optimizations, real‑world examples, common pitfalls and best‑practice recommendations.

Druid vs HikariCP: Which Java Connection Pool Wins?

The article compares Alibaba’s Druid and Spring Boot’s default HikariCP connection pools, explaining how connection pooling works, presenting benchmark results that show HikariCP’s lower latency and higher TPS, detailing HikariCP’s lock‑free ConcurrentBag and bytecode optimizations, and highlighting Druid’s rich monitoring, SQL firewall and leak detection features to help developers choose the right pool for different scenarios.

Stunning SQL Queries: From Tetris Game to Real‑Time Funnels

This article showcases a collection of impressive SQL queries—including a PostgreSQL Tetris implemented with a recursive CTE, window‑function session analysis, a ClickHouse real‑time funnel, dynamic WHERE clause generation, and a recursive employee hierarchy—while discussing performance tips and engine choices.

Apache Doris 4.1: A Unified Data Store and Retrieval Engine for AI & Search

Apache Doris 4.1 introduces a systematic evolution for AI and search workloads, adding low‑cost massive vector storage, unified structured, full‑text and vector search, 100 MB JSON document support, Segment V3 metadata decoupling, sparse column optimizations, lakehouse lifecycle management, and a suite of performance‑boosting features such as aggregate push‑down, condition cache, and spill‑to‑disk, all backed by detailed benchmark results.

Composer 2.5 Narrows the Gap to Claude Opus 4.7 with Ten‑Fold Cost Savings

Composer 2.5, the latest AI‑coding model from Cursor, claims near‑par performance with Claude 4.7 Opus and GPT‑5.5 while delivering up to ten‑times higher efficiency and a pricing model of $0.5 per M input tokens and $2.5 per M output tokens, backed by novel reinforcement‑learning tricks, massive synthetic data, and a custom Muon optimizer with dual‑grid HSDP architecture.

Enterprise Data Warehouse Development Playbook: Standard Engineering Edition

This playbook provides enterprise‑level data warehouse engineers, ETL developers, data modelers, and data‑team managers with a complete, logical, and actionable set of standards, processes, and best‑practice guidelines covering architecture, development principles, role responsibilities, end‑to‑end workflow, metadata, security, performance metrics, and team collaboration.

Agent‑Driven R&D Efficiency: Exploration and Practice at QECon Shenzhen 2026

At QECon Shenzhen 2026, Xiaohongshu's tech team will present five technical talks that showcase how AI agents are applied to architecture risk analysis, change automation, large‑model load‑testing data construction, end‑to‑end testing, and client‑side performance, illustrating concrete engineering solutions and measurable productivity gains.

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