Ahmed FASIH is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Ahmed FASIH @22

Alexandrescu’s Dictum: "You must measure everything". (fasiha.github.io/post/replicat)

I thought I was being sooooooo clever here:

`varZ = var(inrange; mean=meanZ)`

giving `var` (sample variance) a pre-computed mean I had lying around. "It's gotta be faster right?"

Removed the `mean=meanZ`, letting `var` calculate the mean: runtime of my whole program is 8% faster, with *half* as many ephemeral allocations.

I am impressed with Julia's @code_warntype and @time macros
docs.julialang.org/en/release-

@22

Early optimization is the root of all evils.

Every single time.