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

If I told you the first attempt was several million identically named functions, split across several hundred files, and the compile and link times were ~72 hours on a distributed build would you be happier?

A single templated function & a few n*100kloc macros later, and I got the compile time down to ~1s on a crappy laptop.

Macros are 'fast paths' through compilers — they copy structures in memory, rather than going through the entire disk->lex->parse chain.



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

Search: