Quantcast
Channel: virtuallyrandom
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

Part 1: Vector3 Batch Normalization – FPU vs SIMD

Recently, I wanted to see how fast I could make a function that normalizes every vector in an array. The goal was to take “natural” data and make it as fast as possible without putting any undue...

View Article


Part 2: Vector3 Batch Normalization – FPU vs SIMD

Have you read Part 1? As a recap, this series is on using SIMD (specifically, 128 bit SSE 4 float vectors) to optimize a batch normalizing of vectors. While the end result may not be the most...

View Article

Image may be NSFW.
Clik here to view.

Function Call Tests

I did a quick test just to see what the cost of different methods of function calling are. Lots of people say “Soandso is more expensive” but I rarely see anyone quantify what “more expensive” means....

View Article

Simplicity

I’m a big fan of simplicity. It’s easier to learn, understand, maintain, and optimize. It’s also easier to write for, debug, and handle errors. As such, I tend to think a lot about how we code in C and...

View Article

Image may be NSFW.
Clik here to view.

C++ Compilation: What’s Slowing Us Down?

The last post on how long it takes to include (not even use) and compile the standard C/C++ headers left a whole lot of people like: There were questions like “What about using an SSD?” “What about...

View Article


Image may be NSFW.
Clik here to view.

C++ Compilation: Lies, Damned Lies, and Statistics

no, seriously, tl;dr… How the Test Works Optimizing the Test Reasonable Confidence Bias TL;DR Results by Compiler Results by C++ Standard Visual Studio 2015 Visual Studio 2017 clang 7.0.1 Heuristics...

View Article

C++ Compilation: Fixing It

For fixing compile times, there is no magic bullet. It takes work and work takes time. Before you spend time reducing compile (and link) times, evaluate if it actually makes sense. If you spend more...

View Article

Image may be NSFW.
Clik here to view.

Optimizing C++ Compilation: The Trouble With Templates

tl;dr: Results! IntroBaseline Compile TimesReducing Include CostIdentifying Compilation CostIt’s a Problem of ScaleForward DeclarationDetermining What’s ExpensiveDeduplicating Duplicitous...

View Article


Memory Management: An Introduction

Overview What Is This Do We Need Memory Management Prove It’s A Problem Prove ImPROVEments What Exactly Are We Solving Fix Causes, Not Symptoms Memory Usage Fragmentation Waste Performance The Care...

View Article


Image may be NSFW.
Clik here to view.

Memory Management: Fundamentals

Overview Alignment Preferred/Natural Alignment Padding Arrays Of Things Why Does This Matter? Types Of Memory Stack Heap Memory Architecture Virtual Memory Uniform And Nonuniform Memory Performance...

View Article
Browsing latest articles
Browse All 10 View Live