Making dns_erlang Fast: Binary Tricks for the BEAM

11 points by jparise


travisgriggs

GREAT write up. My favorite gem in the whole thing is this very salient comment near the end:

the BEAM is often smarter than you'd expect, and the only way to know is to measure.

You can substitute “the BEAM” with whatever stack works for you. It seems silly to shout out for the oh so obvious “only way to know is to measure”, but I am. Because again and again and again, I deal with people, often very experienced people, who fail to embrace this.

I would further qualify the statement with “the only way to know now is to measure now”. Underlying engines and executions change. What was expensive or cheap in yesteryear’s variant all too often becomes cheap or expensive in today’s.