Tagged articles
2 articles
Page 1 of 1
Amap Tech
Amap Tech
Nov 6, 2019 · Frontend Development

Front‑End Memory Management, Data Structures, and Performance Optimization

To handle the massive memory and CPU demands of modern front‑end map annotations, the article explains JavaScript’s stack‑heap model, object hash‑table storage, and the trade‑offs of plain arrays, TypedArray, DataView, and SharedArrayBuffer, showing that contiguous memory structures and Web‑Worker off‑loading dramatically improve performance and reduce allocations.

SharedArrayBufferTypedArrayWebWorker
0 likes · 17 min read
Front‑End Memory Management, Data Structures, and Performance Optimization
Node Underground
Node Underground
Oct 14, 2019 · Backend Development

How to Harness Node.js Worker Threads with Shared Memory and CGroup Limits

This article demonstrates creating Node.js Worker Threads to compute Fibonacci numbers, explains message passing via workerData and parentPort, explores shared memory with SharedArrayBuffer, and shows how to isolate and limit thread CPU usage using Linux CGroup controls, including retrieving thread IDs via a custom native addon.

Node.jsSharedArrayBufferWorker Threads
0 likes · 8 min read
How to Harness Node.js Worker Threads with Shared Memory and CGroup Limits