Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

stdafx.h is a Microsoft invention used to help speed up C++ compilation. Instead of parsing your 100000 lines of headers for every source file, you would do it once, and the compiler would dump its state to disk. Then, whenever you started another source file with `#include <stdafx.h>`, instead of repeating that work, it would load that state into memory and pick up compiling from there.


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: