#performance
in blog posts
Rc vs Arc in Rust: Memory Layout, Send/Sync Bounds, and Atomic Orderings
std::rc::Rc<T> and std::sync::Arc<T> both give a heap-allocated T multiple owners via reference counting, and both hand out only shared references (&T) on dereference. Summarizing them as “Rc for single-threaded code, Arc for multithreaded code” is a useful starting rule, but it skips four details that matter in real Rust code: how the heap allocation is laid out, when Arc<T> actually implements Send and Sync, what atomic memory orderings Arc pays for, and how mutation and reference cycles behave.
React Hooks Deep Dive: Beyond useState and useEffect
Most React developers know useState and useEffect. But React offers several other hooks that can make your code cleaner, faster, and more maintainable. Let’s explore the hooks you might be missing.
Running Qwen4-35B-A3B Locally at 256K Context: llama.cpp vs LiteRT-LM
Opening Qwen/Qwen4-35B-A3B on Hugging Face greets you with two numbers that look like a typo: a model named 35B-A3B carries a 57B parameter badge, yet ships with Day-0 local builds claiming up to a 1M-token context window on a laptop.
Database Indexes Explained: Single-Column vs. Multicolumn Indexes
If your database queries feel slow, indexes might be the solution. But with different types of indexes available, how do you choose the right one? In this guide, we’ll break down single-column indexes and multicolumn indexes, show practical examples, and explain when to use each for faster query results.