Topic

Performance

Discover performance optimization trends covering profiling, caching, and resource efficiency. Our digest synthesizes concurrency patterns, memory management, and database tuning from developer communities.

What this topic tracks

  • Engineering practices and ecosystem debates
  • Tools, architecture, and implementation lessons
  • Relevant discussions from developer communities

Performance · 970 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

20 stories

Show HN: Mantic.sh – A structural code search engine for AI agents

github.com · 4 Jan

Artificial Intelligence · Performance · Open Source

Mantic is a structural code search engine designed specifically for AI agents, providing sub-500ms retrieval across massive codebases without the need for embeddings or vector databases.

It utilizes a deterministic scoring system that analyzes file structures and metadata rather than content alone, significantly reducing token usage and costs compared to SaaS alternatives. Recent updates include Chromium support for over 481,000 files, improved ranking with multi-language patterns for Python, Rust, and Go, and Model Context Protocol support. This local-first tool ensures privacy and high performance for developers working with LLMs.

The G1 Garbage Collector

dev.java · 17 Nov

Java · Performance

G1 is the default garbage collector in all environments from JDK 27, balancing throughput and latency through region-based, generational, mostly concurrent evacuation.

It divides the heap into uniform regions for eden, survivor, old, and humongous objects, then alternates Young-Only collections with Space-Reclamation mixed collections that prioritize old regions containing the most garbage. Use -XX:+UseG1GC only when needed on older JDKs; configuration trades throughput, latency, and memory footprint rather than delivering universally better performance.

Multimodal open d1 decision models for the edge

huggingface.co · 7 Oct

Artificial Intelligence · Performance

Liquid AI released two open decision models: d1-3B and experimental d1-omni-600M.

Built on Liquid Foundation Models, they answer in one forward pass rather than generating tokens. d1-3B accepts text and images, leads models under 10B on Decision Index 0.2.1 with 48.57, and achieves a mean benchmark score of 82.9. d1-omni-600M supports text plus image or audio, scores 78.4 with 600M parameters, and d1-3B runs in 16–50 ms on Jetson edge devices. Both are open-weight on Hugging Face.

Linux latency measurements and compositor tuning

farnoy.dev · 7 Jun

Linux · Performance

The author investigates gaming latency on Linux using a custom LDAT-based tool.

They identify excessive latency in KWin due to conservative scheduling, safety margins, and inefficient timer precision. By patching KWin and optimizing compositor interactions, they significantly reduced input-to-present latency, partially closing the performance gap with Windows.

Some things Veloren does differently

blog.jsbarretto.com · 15 Sept

Distributed Systems · Performance · Software Architecture

Veloren uses an ECS architecture, unified player/NPC simulation, and a cache-friendly “chonks” terrain structure to scale multiplayer voxel worlds.

It pre-generates terrain, applies physically based procedural generation, and continuously simulates distant NPCs through rtsim. Design constraints—no invisible walls and one world space—enable emergent interactions but demand robust physics, lighting, performance, and game-balance solutions.

All Package Management Functionality Moved from Compiler to Build System

ziglang.org · 1 Jul

Performance · Programming Languages · Open Source

Zig's recent updates include separating the package manager into the 'maker' process to improve build speeds, adding advanced SPIR-V backend features for graphics, and refining LLVM backend integer handling with new @bitCast semantics.

Additionally, the project introduced incremental compilation, improved ELF linking, continued libc replacement efforts, and enhanced dependency management with new CLI flags.

Zig landed io_uring and Grand Central Dispatch std.Io implementations

ziglang.org · 15 Feb

Performance · Programming Languages · Open Source

Zig 2026 devlog highlights major std.Io updates including experimental io_uring and Grand Central Dispatch implementations using fibers.

Package management is improved with local zig-pkg storage and a --fork flag. On Windows, the standard library is shifting from kernel32.dll to ntdll.dll for efficiency, while libc is being incrementally rewritten in Zig.

An official 1-bit quant for Hy4??? 👀

huggingface.co · 29 Aug

Artificial Intelligence · Large Language Models · Performance

AngelSlim/Hy4-preview-GGUF provides Q4_K_M and compact STQ1_0 GGUF builds of HY4-Preview, usable through llama.cpp, Ollama, Docker, Pi, Lemonade, Hermes Agent, OpenClaw, notebooks, and local apps.

Because HY4’s architecture is not upstream, both builds require patched llama.cpp; STQ1_0 also needs CUDA support and an imatrix. Full GPU residency requires approximately 435 or 214 GiB, respectively.

FreeBSD 15 on a Laptop

sacredheartsc.com · 15 Jun

Hardware · Performance · Operating Systems

FreeBSD 15.1 represents a significant milestone for desktop usability, featuring improved LinuxKPI drivers and the new pkgbase system.

This guide documents configuring a ThinkPad as a FreeBSD desktop running KDE, covering driver optimization, power management, kernel tunables, hardware acceleration, and workarounds for known issues with WiFi and suspend/resume cycles.

Lessons from Hash Table Merging

gist.github.com · 1 Jan

Algorithms · C++ · Performance

This technical analysis investigates a significant performance degradation observed when merging millions of keys between hash maps.

While hash map merging is theoretically an O(N) operation, the author demonstrates that popular libraries like Abseil, Boost, and Rust's standard library can suffer from a 20x slowdown due to primary clustering. This occurs when two maps share the same hash function, causing keys to be inserted in an order that saturates the beginning of buckets. The post explores three primary solutions: using a salted hasher to randomize key placement, preallocating memory to reduce bucket saturation, and implementing stride iteration to visit buckets in a non-sequential order. The analysis concludes that while preallocation is often the fastest, salted hashers provide robust protection against clustering and hash flooding.

CUDA/HIP: Flash Attention tuning (gfx1201) by pwilkin · Pull Request #28102 · ggml-org/llama.cpp

github.com · 11 Sept

Algorithms · Hardware · Performance

A llama.cpp PR tunes HIP Flash Attention for AMD RDNA4/gfx1201, fixes HS=256 kernel selection, and adjusts stream-k, GQA, and kernel configuration logic.

On R9700, long-context prefill improved dramatically—pp512 at d150000 rose from 164 to 399 t/s—while broader benchmarks showed gains up to 1.51×. Reviewers requested separated commits and validated the changes.

zerobrew is a Rust-based, 5-20x faster drop-in Homebrew alternative

github.com · 19 Jan

macOS · Performance · Rust

zerobrew is an innovative project designed to revolutionize macOS package management by applying the modern performance principles of uv to the Homebrew ecosystem.

It utilizes a content-addressable store indexed by sha256 hashes and leverages APFS clonefile technology for zero-overhead materialization. By implementing parallel downloads and concurrent extraction, zerobrew achieves 2x to 5x speedups for cold installs and up to 20x for warm reinstalls. Users can seamlessly transition using the zb CLI, which pulls directly from Homebrew's CDN to manage software while dramatically reducing latency through aggressive HTTP caching and multi-threaded execution.

Production query plans without production data

boringsql.com · 8 Mar

Database · Performance · SQL

PostgreSQL 18 introduces pg_restore_relation_stats and pg_restore_attribute_stats, allowing users to export and inject optimizer statistics as portable SQL artifacts.

This feature enables developers to replicate production query plans in CI/CD or local environments without needing full production datasets, significantly improving performance debugging and preventing query regressions.

Gewell - Gemma4 inference engine

github.com · 21 Sept

Artificial Intelligence · Large Language Models · Performance

Gewell is a single-GPU inference engine for Gemma 4 31B on NVIDIA Blackwell GPUs (`sm_120a`).

It supports streaming, tool conversations, JSON-constrained output, continuous batching, prefix caching with optional CPU storage, and MTP speculative decoding. KV storage can use BF16 or FP8, with documentation covering builds, model setup, APIs, offline jobs, and benchmarking.

The state of European cloud providers in 2026

crescentro.se · 7 Sept

Cloud Computing · Performance

A hands-on comparison of European cloud providers evaluates pricing, CPU performance, networking, billing flexibility, IPv4, storage, and console reliability against American alternatives.

Hetzner offers strong value but faces capacity constraints; Leafcloud’s sustainable model is promising but costly; OVH and Scaleway failed operationally. UpCloud emerges as the best overall choice for affordable, modern, flexible personal infrastructure.

Probabilistic data structures in Go

antonz.org · 13 Nov

Algorithms · Go · Performance

The Go package unsure implements five probabilistic data structures that trade exactness for major memory savings: Bloom filter, Count-min sketch, HyperLogLog, T-digest, and Top-k sketch.

They support approximate membership, frequencies, cardinality, quantiles, and heavy-hitter queries over streams, with mergeable summaries where applicable. Using cache-aware layouts, wyhash, conservative updates, and efficient estimators, unsure has small dependency-free implementations and benchmarks showing substantial speed, memory, and sometimes accuracy advantages over comparable Go libraries.

The Zero-Impact Build: Why Writing Less Code is the Best Earth Day Project

dev.to · 18 Apr

Performance · Software Architecture · Environment

This project advocates for a 'Lean Web Architecture' to reduce web carbon footprints.

By favoring vanilla HTML, CSS, JavaScript, and PHP over heavy frameworks, the developer minimizes node_modules bloat, lowers CPU usage, and optimizes server efficiency via aggressive caching and asset compression, proving that simple code reduces environmental impact.

Pining for Arc Downcasting in Rust

wolfgirl.dev · 29 Sept

Low-Level Programming · Performance · Programming Languages

A Rust concurrent cache replaces expensive JSON clones with Arc, but Arc cannot safely downcast from Arc<JSON> to Arc<String>.

The article develops PinRef: a pinned, self-referential wrapper retaining ownership while storing an internal pointer, then projects it through higher-ranked lifetime-preserving functions. It demonstrates clone-cheap typed access while warning that unsafe code may still contain undefined behavior.

The case against JPEG XL

giannirosato.com · 13 Sept

Algorithms · Performance · Computer Science

The article argues that JPEG XL, despite its technical flexibility and strong lossless capabilities, is a poor fit for the Web.

Compared with AVIF and WebP, it offers insufficient lossy-compression advantages, slower decoding, complexity, and potential denial-of-service risks. JPEG XL may still excel in professional, archival, and camera workflows outside browsers.

Extreme Server Side Rendering

scd31.com · 8 Sept

Backend · Performance · Software Architecture

XSSR streams HTML and CSS continuously over a persistent HTTP connection, enabling dynamic applications without client-side JavaScript; hidden iframe forms provide seamless input.

A Flappy Bird demo showed reasonable bandwidth and server performance, but latency severely limits usability. Persistent connections also exposed a Pleroma denial-of-service vulnerability, prompting a patch. Future ideas include server-side React and legacy-device proxies.

Where it came fromLobstersHacker NewsRedditHugging Face BlogDev.toCreate a Snapbyte.dev digest and choose Performance as one of your topics.Build your digest