Allocation Cost
Allocation Cost Prerequisites 1. Why Allocation Matters Memory allocation is not free. 👉 Costs include: Heap allocation (new, malloc) System calls / allocator overhead Cache misses ...
Allocation Cost Prerequisites 1. Why Allocation Matters Memory allocation is not free. 👉 Costs include: Heap allocation (new, malloc) System calls / allocator overhead Cache misses ...
Parameter Optimization Prerequisites 1. Why Parameter Passing Matters Passing parameters incorrectly can introduce hidden costs: Temporary object creation Unnecessary copies Cache in...
Branch Optimization Prerequisites 1. Branch Optimization Modern CPUs use branch prediction to guess the next execution path. 👉 If prediction is correct → fast 👉 If prediction fails → pipeli...
Memory Layout in C++ Prerequisites - Struct - Class 1. Memory Layout Memory layout defines how data is physically arranged in memory. 👉 Performance depends heavily on: Cache line usage ...
Memory Access Optimization Prerequisites - Compile - Runtime 1. Why Memory Access Matters Modern CPUs are much faster than memory. Performance is often limited by: Cache hits vs cache m...
Compile-Time vs Runtime in C++ Prerequisites - Compile - Runtime 1. What is difference between Compile-Time vs Runtime in C++ In C++, operations can be executed at either: Compile-time ...
Bitmask Prerequisites - Bit 1. What is Bitmask? Bitmasking is a technique that uses bits of an integer to represent multiple states. You can manage multiple boolean values using a single in...
Deploy from Github Action to AWS Docker Prerequisites - Install AWS CLI - Docker - CI/CD - Github Action - ECR - Lambda 1. Deploy from Github Action to AWS Docker Step 0 — Availiable setti...
Send Text Message with Lambda Prerequisites - Lambda - Python 1. Example Step 1 — Create S3 Buckets Step 2 — Create Lambda Step 3 — Set Lambda Role Permission from IAM Ste...
Send Text Message with Lambda Prerequisites - Lambda - Python 1. Example Step 1 — Create Lambda Function Step 2 — Do code (with python) Step 3 — Set Lambda Role Permission fro...