<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Optimization on Lorbic</title><link>http://localhost:1313/tags/optimization/</link><description>Recent content in Optimization on Lorbic</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 11 Apr 2026 16:00:00 +0530</lastBuildDate><atom:link href="http://localhost:1313/tags/optimization/index.xml" rel="self" type="application/rss+xml"/><item><title>Critical Rendering Path Optimization: 8 Proven Strategies to Boost Web Performance</title><link>http://localhost:1313/critical-rendering-path-optimization-8-proven-strategies-to-boost-web-performance/</link><pubDate>Sat, 11 Apr 2026 16:00:00 +0530</pubDate><guid>http://localhost:1313/critical-rendering-path-optimization-8-proven-strategies-to-boost-web-performance/</guid><description>&lt;p>&lt;strong>TL;DR:&lt;/strong> The Critical Rendering Path (CRP) is how browsers convert code into pixels. Optimizing it means reducing bottlenecks at five stages: Network, Parsing, Tree Building, Layout, and Paint. Use this guide to reduce First Contentful Paint by 40-60%, improve Lighthouse scores, and master the eight optimization strategies that separate fast sites from slow ones.&lt;/p>
&lt;p>To master web performance, stop guessing and start engineering. View the browser as a single-threaded virtual machine that must convert raw text into pixels 60 times per second. Every performance delay is a bottleneck in the &lt;a href="https://developer.mozilla.org/en-US/docs/Web/Performance/Critical_rendering_path" target="_blank" rel="noopener noreferrer">&lt;strong>Critical Rendering Path (CRP)&lt;/strong>&lt;/a>.&lt;/p></description></item><item><title>A Tale of Web Vitals</title><link>http://localhost:1313/a-tale-of-web-vitals/</link><pubDate>Sat, 11 Apr 2026 14:30:00 +0530</pubDate><guid>http://localhost:1313/a-tale-of-web-vitals/</guid><description>&lt;p>&lt;strong>TL;DR:&lt;/strong> I achieved 95+ Lighthouse scores by removing abstractions and automating browser fundamentals. This guide details how to solve &lt;strong>LCP network discovery&lt;/strong>, &lt;strong>main thread congestion&lt;/strong>, and &lt;strong>third-party accessibility traps&lt;/strong> using Hugo pipelines and vanilla JavaScript.&lt;/p>
&lt;hr>
&lt;p>&amp;ldquo;Why is the LCP 4.2 seconds? It&amp;rsquo;s just a static site&amp;rdquo;.&lt;/p>
&lt;p>I was staring at a Lighthouse report that felt like an insult. &lt;strong>Lorbic.com is a zero-dependency Hugo site.&lt;/strong> No React, no heavy frameworks, just vanilla CSS and minimal JS. Yet, the mobile performance was tanking.&lt;/p></description></item><item><title>Go Struct Field Alignment: How Memory Padding Wastes Your RAM</title><link>http://localhost:1313/go-struct-field-alignment/</link><pubDate>Sat, 24 Jan 2026 10:00:00 +0530</pubDate><guid>http://localhost:1313/go-struct-field-alignment/</guid><description>&lt;p>You write a struct to represent a database entity. Maybe 10 fields, maybe 20. What could possibly go wrong?&lt;/p>
&lt;p>Nothing, according to your tests. But somewhere in production, your heap is 30% larger than it should be, your Garbage Collector is working overtime, and your L1 cache is not used properly. The reason? &lt;strong>Invisible padding bytes&lt;/strong> silently inflating every instance of your struct.&lt;/p>
&lt;p>This is the story of struct field alignment: a memory optimization that costs nothing to implement but can significantly improve performance.&lt;/p></description></item><item><title>Go Garbage Collector Mechanics: Pacer, GOGC, and Allocation Latency</title><link>http://localhost:1313/dont-take-out-the-garbage-go-gc-deep-dive/</link><pubDate>Wed, 07 Jan 2026 00:21:12 +0530</pubDate><guid>http://localhost:1313/dont-take-out-the-garbage-go-gc-deep-dive/</guid><description>&lt;p>In the world of high-throughput backend services, we often obsess over the usual suspects of performance: database indexing, network latency, and algorithmic complexity. But recently, while debugging our core gateway service (&lt;code>backend-gw&lt;/code>), I encountered a bottleneck that defied standard logic.&lt;/p>
&lt;p>The service was &lt;strong>CPU-bound&lt;/strong>, yet active heap usage was surprisingly low (~200MB). P99 latency was spiking at random intervals, but database queries were returning in milliseconds.&lt;/p>
&lt;p>The culprit was not the business logic. It was &lt;strong>memory management&lt;/strong>. I was effectively running a Denial-of-Service attack on my own runtime.&lt;/p></description></item></channel></rss>