Skip to content

Instantly share code, notes, and snippets.

View Ignition's full-sized avatar

Gareth Andrew Lloyd Ignition

View GitHub Profile
@niklas-ourmachinery
niklas-ourmachinery / reducing-build-times.md
Created January 24, 2019 16:30
Reducing build times by 20 % with a one line change

Reducing build times by 20 % with a one line change

Experimenting a bit with the /d2cgsummary and /d1reportTime flags described by Aras here and here I noticed that one of our functions was consistently showing up in the Anomalistic Compile Times section:

1>	Anomalistic Compile Times: 2
1>		create_truth_types: 0.643 sec, 2565 instrs
1>		draw_nodes: 0.180 sec, 5348 instrs
@TinnedTuna
TinnedTuna / gist:1264112
Created October 5, 2011 10:20
Compositional Style in Python
def compose(f, g):
return lambda(x):f(g(x))
def composecurry(f):
return lambda(x) : compose(f,x)
def composevar(*fns):
acc = (lambda (x) : x)
for f in fns: