Tagged articles
33 articles
Page 1 of 1
Goodme Frontend Team
Goodme Frontend Team
Nov 24, 2025 · Frontend Development

How React Fiber Eliminates UI Jank: A Step‑by‑Step Deep Dive

This article explains why web pages feel sluggish, how React Fiber’s interruptible asynchronous rendering solves the jank problem, and walks through progressively refined implementations—from a basic React demo to a full Fiber renderer with work‑loop scheduling, diffing, and performance optimizations.

Diff AlgorithmFiberJavaScript
0 likes · 19 min read
How React Fiber Eliminates UI Jank: A Step‑by‑Step Deep Dive
Sohu Tech Products
Sohu Tech Products
Jan 22, 2025 · Mobile Development

How Flutter and Jetpack Compose Implement UI Diff: A Deep Dive

This article compares the diff and UI update mechanisms of Flutter and Jetpack Compose, explaining Flutter's Element‑based linear reconciliation and Compose's Composer‑driven SlotTable with gap‑buffer diff, while illustrating each step with code snippets and diagrams.

Diff AlgorithmFlutterJetpack Compose
0 likes · 14 min read
How Flutter and Jetpack Compose Implement UI Diff: A Deep Dive
Tencent Cloud Developer
Tencent Cloud Developer
Apr 17, 2024 · Mobile Development

QQ 9 Performance Optimization: Technical Implementation Behind the "Silky Smooth" Experience

QQ 9 achieves a “silky smooth” experience by cutting launch time 40% through lazy‑loaded libraries and main‑thread priority tweaks, boosting runtime fluidity with an NT Kernel that offloads logic, incremental diff refreshes and parallel layout, and adding the Hodor anti‑degradation system, delivering 35% smoother performance and 48% less lag.

Android optimizationAsync LayoutDiff Algorithm
0 likes · 20 min read
QQ 9 Performance Optimization: Technical Implementation Behind the "Silky Smooth" Experience
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 14, 2023 · Frontend Development

Understanding Vue's Diff Algorithm: A Step‑by‑Step Guide

This article explains Vue's diff algorithm in detail, covering prerequisite concepts about VNode, left‑ and right‑side comparisons, handling arrays of different lengths, and the complete implementation with code examples to help developers grasp how Vue efficiently updates the DOM.

Diff AlgorithmJavaScriptVue
0 likes · 11 min read
Understanding Vue's Diff Algorithm: A Step‑by‑Step Guide
HelloTech
HelloTech
Oct 9, 2022 · Frontend Development

Understanding Vue2 and Vue3 Diff Algorithms: Core Principles and Process

The article explains how Vue 2’s diff algorithm uses head‑to‑tail comparisons and a key‑to‑index map to patch, add, or remove nodes, while Vue 3 improves efficiency by building a key‑to‑new‑index map, computing the longest increasing subsequence, and moving only non‑LIS nodes, reducing DOM operations.

Diff AlgorithmJavaScriptVirtual DOM
0 likes · 22 min read
Understanding Vue2 and Vue3 Diff Algorithms: Core Principles and Process
IT Services Circle
IT Services Circle
Apr 17, 2022 · Frontend Development

A 40-line Diff Algorithm Implementation for React's Virtual DOM

This article explains the design and implementation of a minimal 40‑line Diff algorithm for React’s virtual DOM, covering node attribute changes, insertions, deletions, and moves, and provides a complete TypeScript demo that marks nodes with placement or deletion flags for efficient DOM updates.

Diff AlgorithmJavaScriptReact
0 likes · 10 min read
A 40-line Diff Algorithm Implementation for React's Virtual DOM
Shopee Tech Team
Shopee Tech Team
Mar 10, 2022 · Mobile Development

FolderBsdp: An Efficient Incremental Update Solution for React Native Hybrid Apps

FolderBsdp provides an efficient incremental update method for React Native hybrid apps by diffing raw resource folders per file with BSDiff, packaging tiny patches into a single ZIP, dramatically cutting bandwidth, memory usage, and storage while eliminating extra ZIP dependencies, making it ideal for low‑end devices.

Diff AlgorithmFolderBsdpReact Native
0 likes · 22 min read
FolderBsdp: An Efficient Incremental Update Solution for React Native Hybrid Apps
政采云技术
政采云技术
Feb 22, 2022 · Frontend Development

Demystifying Snabbdom’s VNode and Diff Algorithm: A Deep Dive

This article provides a thorough analysis of Snabbdom’s virtual DOM implementation, explaining core concepts such as vnode structure, the diff algorithm, and the patch process, and includes detailed code walkthroughs and diagrams to help developers understand and apply these mechanisms in front‑end projects.

Diff AlgorithmJavaScriptSnabbdom
0 likes · 19 min read
Demystifying Snabbdom’s VNode and Diff Algorithm: A Deep Dive
Sohu Tech Products
Sohu Tech Products
Dec 15, 2021 · Frontend Development

Implementing a Simple Virtual DOM Library with Patch and Diff Algorithms

This article explains how to build a lightweight virtual DOM library in JavaScript, covering the creation of VNode objects, the patch and diff algorithms, handling of attributes, classes, styles, and events, and demonstrates a step‑by‑step implementation using the Snabbdom approach.

Diff AlgorithmJavaScriptSnabbdom
0 likes · 18 min read
Implementing a Simple Virtual DOM Library with Patch and Diff Algorithms
政采云技术
政采云技术
Nov 2, 2021 · Frontend Development

Why Using Index as Key in Vue Is Discouraged

Using an array index as the key in Vue list rendering can cause unnecessary DOM re‑creation, performance degradation, and data misalignment, especially when items are inserted, removed, or reordered, so developers should prefer stable, unique identifiers such as IDs, symbols, or UUIDs for keys.

Diff AlgorithmKEYfrontend
0 likes · 17 min read
Why Using Index as Key in Vue Is Discouraged
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 23, 2021 · Frontend Development

Understanding Virtual DOM and Diff Algorithm in Vue.js (Vue2 and Vue3)

This article explains the concept of virtual DOM, its structure, and how Vue's diff (patch) algorithm works, including detailed code walkthroughs, optimization strategies, key usage, and differences between Vue2 and Vue3 implementations, helping readers fully grasp the underlying principles and performance improvements.

Diff AlgorithmKEYVirtual DOM
0 likes · 28 min read
Understanding Virtual DOM and Diff Algorithm in Vue.js (Vue2 and Vue3)
Tencent Cloud Developer
Tencent Cloud Developer
Sep 15, 2021 · Frontend Development

Deep Dive into Vue.js Virtual DOM Diff Algorithm and Source Code Analysis

The article thoroughly explains Vue.js’s virtual‑DOM diff algorithm, detailing its depth‑first traversal, same‑level node comparison, the sameVnode key/selector check, index map creation, O(n) head‑tail and index‑based matching loops, Vue 3 static‑type optimizations, and a practical implementation for array change detection.

Algorithm OptimizationDiff AlgorithmVirtual DOM
0 likes · 6 min read
Deep Dive into Vue.js Virtual DOM Diff Algorithm and Source Code Analysis
Alibaba Terminal Technology
Alibaba Terminal Technology
May 26, 2021 · Backend Development

How O2 CodeReview Finds the Correct Merge Base for Accurate Diff

This article explains how the O2 CodeReview tool, built on a pure‑frontend IDE, determines the appropriate merge‑base using Git data, handles multiple branch scenarios, and implements a version‑skip algorithm to reduce review workload while ensuring correct diff information.

Code reviewDiff AlgorithmVersion Control
0 likes · 15 min read
How O2 CodeReview Finds the Correct Merge Base for Accurate Diff
Youzan Coder
Youzan Coder
Nov 9, 2018 · Frontend Development

Building a Simple Virtual DOM Diff Algorithm: From Concept to Code

This article explains the Virtual DOM concept, outlines a state‑driven rendering approach, implements a minimal Virtual DOM (VD) structure, creates a diff algorithm to generate patch objects, applies those patches to the real DOM, and compares its performance with full re‑rendering.

DOM PatchingDiff AlgorithmJavaScript
0 likes · 8 min read
Building a Simple Virtual DOM Diff Algorithm: From Concept to Code
Youzan Coder
Youzan Coder
Oct 12, 2018 · Frontend Development

Understanding Virtual DOM: Concepts, Implementation, and Mapping to Real DOM

The article explains the Virtual DOM as a lightweight JavaScript object with tag, props, and children, shows how JSX compiles to VD using a custom pragma, provides helper functions to create real DOM from VD, and outlines how batching updates reduces reflows, previewing a future diff algorithm.

Diff AlgorithmFront-endJSX
0 likes · 7 min read
Understanding Virtual DOM: Concepts, Implementation, and Mapping to Real DOM
Ctrip Technology
Ctrip Technology
Feb 28, 2018 · Mobile Development

Incremental Offline Package Update Solution for Ctrip Travel App

The article details Ctrip's engineering solution for incremental offline package updates in its travel app, covering package creation, management, differential patch generation, download strategies, installation, monitoring, and practical challenges to achieve high success rates on iOS and Android.

DeploymentDiff AlgorithmMobile Development
0 likes · 13 min read
Incremental Offline Package Update Solution for Ctrip Travel App
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 1, 2017 · Frontend Development

Unveiling React’s Diff Algorithm: From O(n³) to O(n) Performance

This article delves into React’s diff mechanism, explaining how the framework transforms the naïve O(n³) tree‑edit distance into an O(n) solution through layered tree diff, component diff, and element diff strategies, and offers practical insights on key usage and performance pitfalls.

Diff AlgorithmReactfrontend performance
0 likes · 14 min read
Unveiling React’s Diff Algorithm: From O(n³) to O(n) Performance
WeChatFE
WeChatFE
Mar 22, 2016 · Frontend Development

How to Build a Simple Virtual DOM in 300–400 Lines of Code

This article explains how to implement a basic Virtual DOM algorithm in 300–400 lines of JavaScript, covering state‑management motivations, tree representation, diffing, and patching, with step‑by‑step code examples and visual illustrations to help developers understand and build their own lightweight Virtual DOM library.

Diff AlgorithmVirtual DOMdom manipulation
0 likes · 13 min read
How to Build a Simple Virtual DOM in 300–400 Lines of Code
Baidu Tech Salon
Baidu Tech Salon
Apr 23, 2014 · Operations

How to Build Low‑Cost Real‑Time Collaborative Editing: From Edit Locks to Distributed OT

This article surveys practical approaches for implementing real‑time collaborative editing, comparing simple edit‑lock methods, line‑based diff/patch techniques, character‑level Myer's diff, and Operational Transformation—including distributed challenges—and offers recommendations based on project size and performance needs.

Diff AlgorithmDistributed Systemsconflict resolution
0 likes · 16 min read
How to Build Low‑Cost Real‑Time Collaborative Editing: From Edit Locks to Distributed OT